From: <var...@us...> - 2013-02-15 15:17:53
|
Revision: 8729 http://sourceforge.net/p/phpwiki/code/8729 Author: vargenau Date: 2013-02-15 15:17:49 +0000 (Fri, 15 Feb 2013) Log Message: ----------- Fix FormNavigate Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2013-02-15 15:14:50 UTC (rev 8728) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2013-02-15 15:17:49 UTC (rev 8729) @@ -27,10 +27,10 @@ $(document).ready(function() { $("#editpage").FormNavigate('<?php echo _('Warning: leaving the page will lose all your modifications!') ?>'); jQuery(this).find(":submit").unbind('click'); - jQuery(this).on('click', "submit[name='edit[save]']", function () { + jQuery(this).on('click', "input[name='edit[save]']", function () { global_formNavigate = true; }); - jQuery(this).on('click', "input[type='image'], submit[name='edit[preview]'], submit[name='edit[diff]']", function () { + jQuery(this).on('click', "input[type='image'], input[name='edit[preview]'], input[name='edit[diff]']", function () { if (supports_local_storage()) { if (global_formNavigate == false) { window.sessionStorage.setItem('wiki_modified', 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |