[-] BO : fix bug #PSTEST-841 - confirmation popup for product attribute deletion not working
This commit is contained in:
@@ -23,6 +23,6 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<a href="{$href}" class="delete" {if isset($confirm)}onclick="return confirm('{$confirm}');"{/if} title="{$action}">
|
||||
<a href="{$href}" class="delete" {if isset($confirm)}onclick="if (confirm('{$confirm}')){ return true; }else{ event.stopPropagation(); event.preventDefault();};"{/if} title="{$action}">
|
||||
<img src="../img/admin/delete.gif" alt="{$action}" />
|
||||
</a>
|
||||
@@ -499,12 +499,12 @@ $(document).ready(function() {
|
||||
// Bind to delete specific price link
|
||||
onTabLoad('Prices', function(){
|
||||
$('#specific_prices_list').delegate('a[name="delete_link"]', 'click', function(){
|
||||
e.preventDefault();
|
||||
deleteSpecificPrice(this.href, $(this).parents('tr'));
|
||||
return false;
|
||||
})
|
||||
});
|
||||
|
||||
// Bind action edition on attribute list
|
||||
// Bind attribute list ajax actions (edit, default, delete)
|
||||
onTabLoad('Combinations', function(){
|
||||
$('table[name=list_table]').delegate('a.edit', 'click', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user