Browse Source

UI-1354: Add validation on number selection for faxbox

4.3
Joris Tirado 11 years ago
parent
commit
4e7effcfe9
3 changed files with 23 additions and 6 deletions
  1. +9
    -0
      i18n/en-US.json
  2. +9
    -0
      i18n/fr-FR.json
  3. +5
    -6
      submodules/users/users.js

+ 9
- 0
i18n/en-US.json View File

@ -513,6 +513,10 @@
"faxing": {
"title": "Faxbox",
"headline": "Faxbox",
"defaultSettings": {
"nameExtension": "'s Faxbox",
"headerExtension": " Fax Printer"
},
"__comment": "UI-1354: Add better explanation to faxbox feature",
"__version": "v3.20_s4",
"faxToEmail": {
@ -533,6 +537,11 @@
"text1": "Click ",
"text2": " to activate the Google Cloud Printer. Get the printer installer from ",
"link": "here"
},
"toastr": {
"error": {
"numberMissing": "Please select a number"
}
}
},
"vm_to_email": {


+ 9
- 0
i18n/fr-FR.json View File

@ -483,6 +483,10 @@
"faxing": {
"title": "Faxbox",
"headline": "Faxbox",
"defaultSettings": {
"nameExtension": "'s Faxbox",
"headerExtension": " Fax Printer"
},
"faxToEmail": {
"title": "Fax to Email",
"text1": "Les fax envoyés à",
@ -501,6 +505,11 @@
"text1": "Cliquez ",
"text2": " pour activer l'imprimante Google Cloud. Récupérez l'intalleur de l'imprimante ",
"link": "ici"
},
"toastr": {
"error": {
"numberMissing": "Veuillez sélectionner un numéro"
}
}
},
"vm_to_email": {


+ 5
- 6
submodules/users/users.js View File

@ -1635,15 +1635,14 @@ define(function(require){
if ( switchFeature.prop('checked')) {
if (newNumber !== '') {
console.log('not empty');
// self.usersUpdateFaxing(data, newNumber, function(results) {
// args.userId = results.callflow.owner_id;
self.usersUpdateFaxing(data, newNumber, function(results) {
args.userId = results.callflow.owner_id;
// self.usersRender(args);
// });
self.usersRender(args);
});
}
else {
console.log('is empty');
monster.ui.alert('error', self.i18n.active().users.faxing.toastr.error.numberMissing);
}
} else {
self.usersDeleteFaxing(data.user.id, function() {


Loading…
Cancel
Save