[Erp5-report] r34375 ivan - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTe...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 8 12:47:49 CEST 2010
Author: ivan
Date: Thu Apr 8 12:47:46 2010
New Revision: 34375
URL: http://svn.erp5.org?rev=34375&view=rev
Log:
Show an warning box ofor unsaved changes only if save button do exists in page.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml?rev=34375&r1=34374&r2=34375&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] Thu Apr 8 12:47:46 2010
@@ -250,7 +250,8 @@
var changed = false;\n
function installUnsavedChangesWarning(warning_message) {\n
window.onbeforeunload = function() {\n
- if (changed) \n
+ if ((changed)&&(getFirstElementByTagAndClassName("button", "save")))\n
+ // show an warning box only if save button do exists\n
return warning_message;\n
};\n
};\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=34375&r1=34374&r2=34375&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Thu Apr 8 12:47:46 2010
@@ -1,1 +1,1 @@
-918
+920
More information about the Erp5-report
mailing list