From 44619cb936d901c084f0339f5c117dc194ae8aa7 Mon Sep 17 00:00:00 2001 From: Javier Date: Wed, 21 Sep 2016 17:46:20 -0300 Subject: [PATCH] fix default text on popupService --- src/js/services/popupService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/services/popupService.js b/src/js/services/popupService.js index c50903d46..2ca1dfa0f 100644 --- a/src/js/services/popupService.js +++ b/src/js/services/popupService.js @@ -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); };