// Added safety to not be able to save product before the mandatory tabs are loaded
This commit is contained in:
1 parent
9ebadee461
commit
3db7f7fb5d
1 file changed
+16
@@ -289,10 +289,26 @@ function getManufacturers()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function disableSave()
|
||||||
|
{
|
||||||
|
if ($('#product-tab-content-Associations').hasClass('not-loaded'))
|
||||||
|
{
|
||||||
|
$('#desc-product-save').hide();
|
||||||
|
$('#desc-product-save-and-stay').hide();
|
||||||
|
|
||||||
|
$('#product-tab-content-Associations').bind('loaded', function()
|
||||||
|
{
|
||||||
|
$('#desc-product-save').show();
|
||||||
|
$('#desc-product-save-and-stay').show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* function autocomplete */
|
/* function autocomplete */
|
||||||
urlToCall = null;
|
urlToCall = null;
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
updateCurrentText();
|
updateCurrentText();
|
||||||
updateFriendlyURL();
|
updateFriendlyURL();
|
||||||
|
disableSave();
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user