[Svn] r4229 - in trunk/roundcubemail: . program/js

trac at roundcube.net trac at roundcube.net
Wed Nov 17 10:01:25 CET 2010


Author: alec
Date: 2010-11-17 03:01:25 -0600 (Wed, 17 Nov 2010)
New Revision: 4229

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/js/app.js
Log:
- Lock submit button in onsubmit event on login page (#1487036)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2010-11-16 07:47:07 UTC (rev 4228)
+++ trunk/roundcubemail/CHANGELOG	2010-11-17 09:01:25 UTC (rev 4229)
@@ -72,6 +72,7 @@
 - Fix handling of HTML entity strings in plain text messages
 - Fix focused elements aren't unfocused when clicking on the list (#1487123)
 - Fix error in MSSQL DDL scripts (#1487112)
+- Lock submit button in onsubmit event on login page (#1487036)
 
 RELEASE 0.4.2
 -------------

Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-11-16 07:47:07 UTC (rev 4228)
+++ trunk/roundcubemail/program/js/app.js	2010-11-17 09:01:25 UTC (rev 4229)
@@ -378,10 +378,11 @@
         // detect client timezone
         $('#rcmlogintz').val(new Date().getTimezoneOffset() / -60);
 
-        // display 'loading' message on form submit
+        // display 'loading' message on form submit, lock submit button
         $('form').submit(function () {
-          rcmail.display_message(rcmail.get_label('loading'), 'loading');
-        }); 
+          $('input[type=submit]', this).attr('disabled', true);
+          rcmail.display_message('', 'loading');
+        });
 
         this.enable_command('login', true);
         break;

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list