Improve the indentation on default_setting_edit.php.
This commit is contained in:
parent
95dbb99bbe
commit
76b0781d9a
|
|
@ -648,19 +648,19 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<script>\n";
|
echo "<script>\n";
|
||||||
//capture enter key to submit form
|
//capture enter key to submit form
|
||||||
echo " $(window).keypress(function(event){\n";
|
echo " $(window).keypress(function(event){\n";
|
||||||
echo " if (event.which == 13) { submit_form(); }\n";
|
echo " if (event.which == 13) { submit_form(); }\n";
|
||||||
echo " });\n";
|
echo " });\n";
|
||||||
//hide/convert password fields then submit form
|
//hide/convert password fields then submit form
|
||||||
echo " function submit_form() {\n";
|
echo " function submit_form() {\n";
|
||||||
echo " $('input:password').css('visibility','hidden');\n";
|
echo " $('input:password').css('visibility','hidden');\n";
|
||||||
echo " $('input:password').attr({type:'text'});\n";
|
echo " $('input:password').attr({type:'text'});\n";
|
||||||
echo " $('form#frm').submit();\n";
|
echo " $('form#frm').submit();\n";
|
||||||
echo " }\n";
|
echo " }\n";
|
||||||
//define lowercase class
|
//define lowercase class
|
||||||
echo " $('.lowercase').blur(function(){ this.value = this.value.toLowerCase(); });";
|
echo " $('.lowercase').blur(function(){ this.value = this.value.toLowerCase(); });";
|
||||||
//show order if array
|
//show order if array
|
||||||
echo " $('#default_setting_name').keyup(function(){ \n";
|
echo " $('#default_setting_name').keyup(function(){ \n";
|
||||||
echo " (this.value.toLowerCase() == 'array') ? $('#tr_order').slideDown('fast') : $('#tr_order').slideUp('fast');\n";
|
echo " (this.value.toLowerCase() == 'array') ? $('#tr_order').slideDown('fast') : $('#tr_order').slideUp('fast');\n";
|
||||||
echo " });\n";
|
echo " });\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue