diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml index 18f1a07db7a92e04e4589669e3cea0e2db22ba36..1f936b2d04d21d3f1cf12d6f3d386b5fcb5b727f 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml @@ -250,7 +250,8 @@ var resizeIFrameOnLoad = function() {\n 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 diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 7e752471bfa3b8caabafb3764cb3ebfac522052b..6b65e97135727f79c21ed3f8ebdee07457a32881 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -918 \ No newline at end of file +920 \ No newline at end of file