// fix save button hiding during loading of product pages

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12112 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-01-04 10:55:55 +00:00
parent d0fc5ef84c
commit 566f10681a
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();
});
});