// fix save button hiding during loading of product pages
This commit is contained in:
@@ -217,6 +217,15 @@
|
|||||||
$("div.productTabs a[id$=-{$show_product_tab_content}]").click();
|
$("div.productTabs a[id$=-{$show_product_tab_content}]").click();
|
||||||
{/if}
|
{/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(){
|
$('.confirm_leave').live('click', function(){
|
||||||
// Double quotes are necessary when the translated string has single quotes
|
// 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}");
|
return confirm("{l s='You will lose all unsaved modifications, do you want to proceed?' js=1}");
|
||||||
|
|||||||
@@ -306,13 +306,4 @@ urlToCall = null;
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
updateCurrentText();
|
updateCurrentText();
|
||||||
updateFriendlyURL();
|
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();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user