Fix alert messages

This commit is contained in:
Gustavo Maximiliano Cortez 2015-07-29 12:37:51 -03:00
commit f69e980d71
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 23 additions and 18 deletions

View file

@ -89,6 +89,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$rootScope.$digest();
});
var accept_msg = gettextCatalog.getString('Accept');
var cancel_msg = gettextCatalog.getString('Cancel');
var confirm_msg = gettextCatalog.getString('Confirm');
// walletHome
@ -1072,7 +1076,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
};
this.confirmDialog = function(msg, cb) {
if (isCordova) {
if (isCordova) {
navigator.notification.confirm(
msg,
function(buttonIndex) {
@ -1083,7 +1087,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
} else {
return cb(false);
}
}
},
confirm_msg, [accept_msg, cancel_msg]
);
} else if (isChromeApp) {
// No feedback, alert/confirm not supported.