fix default text on popupService
This commit is contained in:
parent
93d694d048
commit
44619cb936
1 changed files with 3 additions and 3 deletions
|
|
@ -58,12 +58,12 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
|||
navigator.notification.confirm(message, onConfirm, title, [okText, cancelText]);
|
||||
};
|
||||
|
||||
var _cordovaPrompt = function(title, message, cb) {
|
||||
var _cordovaPrompt = function(title, message, opts, cb) {
|
||||
var onPrompt = function(results) {
|
||||
if (results.buttonIndex == 1) return cb(results.input1);
|
||||
else return cb();
|
||||
}
|
||||
navigator.notification.prompt(message, onPrompt, title);
|
||||
navigator.notification.prompt(message, onPrompt, title, null, opts.defaultText);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -118,7 +118,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
|||
$log.warn(title + ": " + message);
|
||||
|
||||
if (isCordova)
|
||||
_cordovaPrompt(title, message, cb);
|
||||
_cordovaPrompt(title, message, opts, cb);
|
||||
else
|
||||
_ionicPrompt(title, message, opts, cb);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue