Loading src/blogi.cpp +5 −0 Changes for src/blogi.cpp: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -790,6 +790,11 @@ static void renderSettingsJson(json_object *jroot, libhtmlpp::HtmlString &out, c << "}" << "new BlogiCP('" << uid << "');" << "</script>"; }else if(strcmp(type,"checkbox")==0){ out << "<input class=\"set-input\" type=\"checkbox\" name=\"" << name << "\" value=\"on\""; if(value && (strcmp(value,"on")==0 || strcmp(value,"true")==0 || strcmp(value,"1")==0)) out << " checked"; out << " />"; }else{ out << "<input class=\"set-input\" type=\"" << type << "\" name=\"" << name << "\" value=\"" << value << "\" />"; } Loading Loading
src/blogi.cpp +5 −0 Changes for src/blogi.cpp: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -790,6 +790,11 @@ static void renderSettingsJson(json_object *jroot, libhtmlpp::HtmlString &out, c << "}" << "new BlogiCP('" << uid << "');" << "</script>"; }else if(strcmp(type,"checkbox")==0){ out << "<input class=\"set-input\" type=\"checkbox\" name=\"" << name << "\" value=\"on\""; if(value && (strcmp(value,"on")==0 || strcmp(value,"true")==0 || strcmp(value,"1")==0)) out << " checked"; out << " />"; }else{ out << "<input class=\"set-input\" type=\"" << type << "\" name=\"" << name << "\" value=\"" << value << "\" />"; } Loading