mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Gateways - Edit: Revise and simplify javascript.
This commit is contained in:
@@ -839,16 +839,10 @@
|
||||
|
||||
echo "</form>";
|
||||
|
||||
//capture enter key to submit form
|
||||
//hide password fields before submit
|
||||
echo "<script>\n";
|
||||
echo " $(window).keypress(function(event){\n";
|
||||
echo " if (event.which == 13) { submit_form(); }\n";
|
||||
echo " });\n";
|
||||
|
||||
// convert password fields to
|
||||
echo " function submit_form() {\n";
|
||||
echo " $('input:password').css('visibility','hidden');\n";
|
||||
echo " $('input:password').attr({type:'text'});\n";
|
||||
echo " hide_password_fields();\n";
|
||||
echo " $('form#frm').submit();\n";
|
||||
echo " }\n";
|
||||
echo "</script>\n";
|
||||
|
||||
Reference in New Issue
Block a user