refactor(config) show_keys_panel -> showKeysPanel

This commit is contained in:
coderaiser 2013-11-11 12:54:56 +00:00
parent 4b01334d1d
commit b524149b1d
3 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ All main configuration could be done via [config.json](json/config.json "Config"
"online" : true, /* load js files from cdn or local path */
"cache" : true, /* add cache-control */
"logs" : false, /* logs or console ouput */
"show_keys_panel" : true, /* show classic panel with buttons of keys */
"showKeysPanel" : true, /* show classic panel with buttons of keys */
"server" : true, /* server mode or testing mode */
"socket" : true /* enable web sockets */
"port" : 8000, /* http port or null(default) */

View file

@ -57,7 +57,7 @@
' manifest="/cloudcmd.appcache"'
]);
if (!Config.show_keys_panel) {
if (!Config.showKeysPanel) {
lKeysPanel = '<div class="keyspanel';
lData = lData.replace(lKeysPanel + '"', lKeysPanel +' hidden"');
}

View file

@ -7,7 +7,7 @@
<li><span><input type="checkbox" id="online" {{ online }} ></input></span><label for="online"> Online</label></li>
<li><span><input type="checkbox" id="cache" {{ cache }} ></input></span><label for="cache"> Cache</label></li>
<li><span><input type="checkbox" id="logs" {{ logs }} ></input></span><label for="logs"> Logs</label></li>
<li><span><input type="checkbox" id="show_keys_panel" {{ show_keys_panel }}></input></span><label for="show_keys_panel"> Show keys panel</label></li>
<li><span><input type="checkbox" id="showKeysPanel" {{ showKeysPanel }}></input></span><label for="showKeysPanel"> Show keys panel</label></li>
<li><span><input type="checkbox" id="socket" {{ socket }} ></input></span><label for="socket"> Socket</label></li>
<li><input class="form-control" placeholder="Port" id="port" value="{{ port }}" title="Port"></input></li>
<li><input class="form-control" placeholder="Ssl Port" id="sslPort" value="{{ sslPort }}" title="SSL Port"></input></li>