mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Improve the indentation on default_setting_edit.php.
This commit is contained in:
@@ -648,22 +648,22 @@ 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";
|
||||||
echo "</script>\n";
|
echo "</script>\n";
|
||||||
|
|
||||||
//include the footer
|
//include the footer
|
||||||
|
|||||||
Reference in New Issue
Block a user