From: <jon...@us...> - 2009-10-10 18:21:10
|
Revision: 22181 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=22181&view=rev Author: jonnybradley Date: 2009-10-10 18:21:02 +0000 (Sat, 10 Oct 2009) Log Message: ----------- [FIX] Stop 'save last changes' dialogs on beforeunload when textarea not changed as the form is shared Modified Paths: -------------- trunk/lib/smarty_tiki/block.textarea.php Modified: trunk/lib/smarty_tiki/block.textarea.php =================================================================== --- trunk/lib/smarty_tiki/block.textarea.php 2009-10-10 17:57:50 UTC (rev 22180) +++ trunk/lib/smarty_tiki/block.textarea.php 2009-10-10 18:21:02 UTC (rev 22181) @@ -237,7 +237,11 @@ \$jq('document').ready( function() { editTimeoutIntervalId = setInterval(editTimerTick, 1000); // attach dirty function to all relevant inputs etc - \$jq(\$jq('#$as_id').attr('form')).find('input, textarea, select').change( function () { if (!editorDirty) { editorDirty = true; } }); + if ('$as_id' == 'um_data') { // modules admin exception + \$jq('#$as_id').change( function () { if (!editorDirty) { editorDirty = true; } }); + } else { + \$jq(\$jq('#$as_id').attr('form')).find('input, textarea, select').change( function () { if (!editorDirty) { editorDirty = true; } }); + } }); window.needToConfirm = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |