// fix save button hiding during loading of product pages

This commit is contained in:
tDidierjean
2012-01-04 10:55:55 +00:00
parent 569a2908e5
commit 0e35f9e10e
2 changed files with 9 additions and 9 deletions
@@ -217,6 +217,15 @@
$("div.productTabs a[id$=-{$show_product_tab_content}]").click();
{/if}
// disable save if Associations tab is not loaded
if ($('#product-tab-content-Associations').hasClass('not-loaded'))
disableSave();
$('#product-tab-content-Associations').bind('loaded', function()
{
enableSave();
});
$('.confirm_leave').live('click', function(){
// Double quotes are necessary when the translated string has single quotes
return confirm("{l s='You will lose all unsaved modifications, do you want to proceed?' js=1}");
-9
View File
@@ -306,13 +306,4 @@ urlToCall = null;
$(document).ready(function() {
updateCurrentText();
updateFriendlyURL();
// disable save if Associations tab is not loaded
if ($('#product-tab-content-Associations').hasClass('not-loaded'))
disableSave();
$('#product-tab-content-Associations').bind('loaded', function()
{
enableSave();
});
});