[-] 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)
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* 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}" />
|
<img src="../img/admin/delete.gif" alt="{$action}" />
|
||||||
</a>
|
</a>
|
||||||
@@ -499,12 +499,12 @@ $(document).ready(function() {
|
|||||||
// Bind to delete specific price link
|
// Bind to delete specific price link
|
||||||
onTabLoad('Prices', function(){
|
onTabLoad('Prices', function(){
|
||||||
$('#specific_prices_list').delegate('a[name="delete_link"]', 'click', function(){
|
$('#specific_prices_list').delegate('a[name="delete_link"]', 'click', function(){
|
||||||
|
e.preventDefault();
|
||||||
deleteSpecificPrice(this.href, $(this).parents('tr'));
|
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(){
|
onTabLoad('Combinations', function(){
|
||||||
$('table[name=list_table]').delegate('a.edit', 'click', function(e){
|
$('table[name=list_table]').delegate('a.edit', 'click', function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user