убрать окно подтверждения
Здравствуйте! При удалении товара из корзины появляется окно подтверждения .......как можно его убрать изменить, что бы оно не появлялась при удалении вообще (если это возможно).........Спасибо
this.delItem = function(id) { if (confirm("удалить #" + id + "?")) { $("#btable").html(""); delete this.DATA[id]; this.IDS.splice( $.inArray(id, this.IDS), 1 ); this.reCalc(); this.renderBasketTable(); localStorage.setItem(this.cardID, JSON.stringify(this.DATA)); localStorage.setItem(this.cardID + "_ids", JSON.stringify(this.IDS)); } |
if (confirm("удалить #" + id + "?")) { $("#btable").html(""); delete this.DATA[id]; this.IDS.splice( $.inArray(id, this.IDS), 1 ); this.reCalc(); this.renderBasketTable(); localStorage.setItem(this.cardID, JSON.stringify(this.DATA)); localStorage.setItem(this.cardID + "_ids", JSON.stringify(this.IDS)); }=> $("#btable").html(""); delete this.DATA[id]; this.IDS.splice( $.inArray(id, this.IDS), 1 ); this.reCalc(); this.renderBasketTable(); localStorage.setItem(this.cardID, JSON.stringify(this.DATA)); localStorage.setItem(this.cardID + "_ids", JSON.stringify(this.IDS)); |
Спасибо помогло :)
|
Часовой пояс GMT +3, время: 15:30. |