From db6a5cfc3e184a7ede13d88b17d9d9a4d5aa39bf Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 14 Feb 2019 20:18:10 +0100 Subject: [PATCH] changed hide for on-hide binding --- modules/ticket/front/sale/editDiscount.js | 4 ++-- modules/ticket/front/sale/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ticket/front/sale/editDiscount.js b/modules/ticket/front/sale/editDiscount.js index c4c73b016..34dc0c48e 100644 --- a/modules/ticket/front/sale/editDiscount.js +++ b/modules/ticket/front/sale/editDiscount.js @@ -44,7 +44,7 @@ class Controller { } if (modified) { this.$http.post(`/ticket/api/Sales/updateDiscount`, {editLines}).then(() => { - this.hide(); + this.onHide(); this.vnApp.showSuccess(this.$translate.instant('Data saved!')); this.clear(); modified = false; @@ -69,6 +69,6 @@ ngModule.component('vnTicketSaleEditDiscount', { edit: ' + on-hide="$ctrl.hideEditPopover()"> @@ -204,7 +204,7 @@ mana="$ctrl.mana" bulk="true" edit="$ctrl.edit" - hide="$ctrl.hideEditDialog()"> + on-hide="$ctrl.hideEditDialog()">