[Svn] r1984 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Fri Oct 17 08:42:13 CEST 2008


Author: alec
Date: 2008-10-17 01:42:12 -0500 (Fri, 17 Oct 2008)
New Revision: 1984

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
#1485506: close spellchecker before sending the message


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2008-10-16 11:52:09 UTC (rev 1983)
+++ trunk/roundcubemail/program/js/app.js	2008-10-17 06:42:12 UTC (rev 1984)
@@ -1989,23 +1989,31 @@
       return false;
       }
 
+    // Apply spellcheck changes if spell checker is active
+    this.stop_spellchecking();
+
     return true;
     };
 
+  this.stop_spellchecking = function()
+    {
+    if (this.env.spellcheck && !this.spellcheck_ready) {
+      exec_event(this.env.spellcheck.check_link, 'click');
+      this.set_spellcheck_state('ready');
+      }
+    };
+
   this.display_spellcheck_controls = function(vis)
-  {
+    {
     if (this.env.spellcheck) {
       // stop spellchecking process
       if (!vis && !this.spellcheck_ready) 
-        {
-	exec_event(this.env.spellcheck.check_link, 'click');
-	this.set_spellcheck_state('ready');
-	}
+	this.stop_spellchecking();
 			      
       this.env.spellcheck.check_link.style.visibility = vis ? 'visible' : 'hidden';
       this.env.spellcheck.switch_lan_pic.style.visibility = vis ? 'visible' : 'hidden';
-    }
-  };
+      }
+    };
 
   this.set_spellcheck_state = function(s)
     {

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



More information about the Svn mailing list