var themeAutoSelect=true;var versioncss=20190717;var isLoadClick=false;$(function(){var d=mystorage.get("fontsize");var e=mystorage.get("theme");if($("#setFontSize").length>0){$("#setFontSize").combobox({onChange:function(h,g){if(h!=g){if(!themeAutoSelect){savePageRightConfig(h,null)}}},onClick:function(h,g){themeAutoSelect=false}})}if($("#setTheme").length>0){$("#setTheme").combobox({onChange:function(h,g){if(h!=g){if(!themeAutoSelect){savePageRightConfig(null,h)}}},onClick:function(h,g){themeAutoSelect=false}})}if($("#defaultPage").length>0){$("#defaultPage").combobox({onChange:function(h,g){if(h!=g){if(!themeAutoSelect){savePageRightConfig(null,null,h)}}},onClick:function(h,g){themeAutoSelect=false}})}if($("#setinput").length>0){$("#setinput").combobox({onChange:function(h,g){if(h!=g){if(!themeAutoSelect){savePageRightConfig(null,null,null)}}},onClick:function(h,g){themeAutoSelect=false}})}if(!d||!e){var f={};f.pk="indexconfig";var c=base_path+"lib/pageconfig/get.do";$.post(c,f,function(i){if(i.status=="0"){var h=i.rows[0];var g=JSON.parse(h.paramjson);d=g.fontsize;e=g.theme;setValue("defaultPage",g.page);if(g.input){setValue("setinput",g.input);loadBindClickFun()}setThemeFontSize(d,e)}},"json")}else{var a=mystorage.get("defaultPage");if(a){setValue("defaultPage",a)}var b=mystorage.get("input");if(b){setValue("setinput",b);loadBindClickFun()}setThemeFontSize(d,e)}});function loadBindClickFun(){if(!isLoadClick){var a=mystorage.get("input");if(a&&a=="1"){$("input",$(".easyui-textbox,.easyui-numberbox").next("span")).click(function(){this.select()});isLoadClick=true}}}function repeatBindClickFun(){var a=mystorage.get("input");if(a&&a=="1"){$("input",$(".easyui-textbox,.easyui-numberbox").next("span")).click(function(){this.select()});isLoadClick=true}}function savePageRightConfig(g,f,b){var a={};a.type="indexconfig";if(!f){f=getValue("setTheme")}if(!g){g=getValue("setFontSize")}var e;if(!b){e=getValue("defaultPage")}else{e=b}var c=getValue("setinput");a.paramjson=JSON.stringify({fontsize:g,theme:f,page:e,input:c});var d=base_path+"lib/pageconfig/save.do";$.post(d,a,function(h){if(h.status=="0"){mystorage.set("input",c);if(!b){setThemeFontSize(g,f);refreshTab()}else{mystorage.set("defaultPage",e);controlSidebar()}}else{}},"json")}function setThemeFontSize(b,a){themeAutoSelect=true;setValue("setTheme",a);setValue("setFontSize",b);if(!b){b="easyui"}if(!a){a="bootstrap"}mystorage.set("fontsize",b);mystorage.set("theme",a);initPageRightConfig()}function initPageRightConfig(){var b=mystorage.get("fontsize");var a=mystorage.get("theme");if(!b){b="easyui"}if(!a){a="bootstrap"}};