diff --git a/i18n/en-US.json b/i18n/en-US.json index db8feba..8e5d2b5 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -630,14 +630,10 @@ "removeNumberSuccess": "Number successfully removed from the main callflow." }, "popupRemoveFeatures": { - "title": "Remove Features", - "questionPartOne": "Do you want to remove features from number", + "title": "Features", + "questionPartOne": "Do you want to remove features from", "questionPartTwo": "?", - "featuresToRemove": "Feature(s) to remove :", - "dialogConfirm": { - "keep": "Keep", - "remove": "Remove" - }, + "featuresToRemove": "Check the feature(s) to remove :", "features": { "cnam": "Caller-ID", "dash_e911": "e911" diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json index f6a7552..3eb6dab 100644 --- a/i18n/fr-FR.json +++ b/i18n/fr-FR.json @@ -606,14 +606,10 @@ "removeNumberSuccess": "Numéro retiré du callflow principal." }, "popupRemoveFeatures": { - "title": "Supprimer des fonctionnalités", - "questionPartOne": "Voulez-vous supprimer des fonctionnalités du numéro", + "title": "Fonctionnalités", + "questionPartOne": "Voulez-vous supprimer des fonctionnalités de", "questionPartTwo": "?", - "featuresToRemove": "Fonctionnalité(s) à supprimer :", - "dialogConfirm": { - "keep": "Garder", - "remove": "Supprimer" - }, + "featuresToRemove": "Sélectionner les fonctionnalité(s) à supprimer :", "features": { "cnam": "Caller-ID", "dash_e911": "Adresse d'urgence (e911)" diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json index 3656424..1ea1123 100644 --- a/i18n/ru-RU.json +++ b/i18n/ru-RU.json @@ -634,10 +634,6 @@ "questionPartOne": "Вы хотите удалить функции с номера", "questionPartTwo": "?", "featuresToRemove": "Функции для удаления :", - "dialogConfirm": { - "keep": "Оставить", - "remove": "Удалить" - }, "features": { "cnam": "Caller-ID", "dash_e911": "Экстр.выз.911" diff --git a/submodules/strategy/strategy.js b/submodules/strategy/strategy.js index de02e9e..eaacb71 100644 --- a/submodules/strategy/strategy.js +++ b/submodules/strategy/strategy.js @@ -556,25 +556,17 @@ define(function(require){ width: '540px' }); - popup.find('.delete-feature').on('click', function() { - $(this).parents('tr').remove(); - - if ( popup.find('tbody').is(':empty') ) { - popup.dialog('close'); - - updateCallflow(); - } - }); + monster.ui.prettyCheck.create(popup); popup.find('.cancel-link').on('click', function() { popup.dialog('close'); - - updateCallflow(); }); popup.find('#remove_features').on('click', function() { popup.find('.table td').each(function(idx, elem) { - delete dataNumber[$(this).data('name')]; + if ($(elem).find('input').is(':checked')) { + delete dataNumber[$(elem).data('name')]; + } }); self.strategyUpdateNumber(numberToRemove, dataNumber, function() { diff --git a/views/strategy-popupRemoveFeatures.html b/views/strategy-popupRemoveFeatures.html index 5fe5f7a..b31210e 100644 --- a/views/strategy-popupRemoveFeatures.html +++ b/views/strategy-popupRemoveFeatures.html @@ -1,5 +1,5 @@
| {{friendlyName}} |
| + + | +