From: <pdo...@us...> - 2011-12-15 23:19:48
|
Revision: 14231 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14231&view=rev Author: pdontthink Date: 2011-12-15 23:19:42 +0000 (Thu, 15 Dec 2011) Log Message: ----------- Add plugin compatiblility info Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/src/compose.php Modified: branches/SM-1_4-STABLE/squirrelmail/src/compose.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/src/compose.php 2011-12-15 22:16:23 UTC (rev 14230) +++ branches/SM-1_4-STABLE/squirrelmail/src/compose.php 2011-12-15 23:19:42 UTC (rev 14231) @@ -1088,6 +1088,12 @@ // to do; SquirrelMail itself will add the final "return true". // Onsubmit text is enclosed inside of double quotes, so plugins // need to quote accordingly. + // + // 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 code: + // if (your-code-here) { submit_count = 0; return false; } + // if ($javascript_on) { if (empty($compose_onsubmit)) $compose_onsubmit = array(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |