[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[14271] trunk/documentation/devel/devel.sgml
From:       pdontthink () users ! sourceforge ! net
Date:       2012-02-05 2:25:25
Message-ID: E1RtrnB-0005gs-DH () sfp-svn-4 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 14271
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14271&view=rev
Author:   pdontthink
Date:     2012-02-05 02:25:24 +0000 (Sun, 05 Feb 2012)
Log Message:
-----------
Update compose_form hook docs to match info in compose.php source file

Modified Paths:
--------------
    trunk/documentation/devel/devel.sgml

Modified: trunk/documentation/devel/devel.sgml
===================================================================
--- trunk/documentation/devel/devel.sgml	2012-02-05 00:36:21 UTC (rev 14270)
+++ trunk/documentation/devel/devel.sgml	2012-02-05 02:25:24 UTC (rev 14271)
@@ -1777,6 +1777,15 @@
 $compose_onsubmit[] = ' if (somevar == \'no\') { alert(\\"Sorry\\"); return false; \
}';  </verb></tscreen>
 
+Also, plugin authors should try to retain compatibility with the Compose Extras
+plugin by resetting its compose submit counter when preventing form submit.  Use
+this JavaScript code:
+
+<tscreen><verb>
+global $compose_onsubmit;
+$compose_onsubmit[] = ' if (your-code-goes-here) { submit_count = 0; return false; \
}'; +</verb></tscreen>
+
 Any other form tag additions by a plugin (beside <tt/onsubmit/ event code) can
 currently be echoed directly to the browser.
 

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic