commit
c4c2e26fc2
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
||||||
$ionicPopup.prompt({
|
$ionicPopup.prompt({
|
||||||
title: title,
|
title: title,
|
||||||
subTitle: message,
|
subTitle: message,
|
||||||
inputType: opts.inputType,
|
template: '<input ng-model="data.response" type="' + opts.inputType + '" autofocus>',
|
||||||
inputPlaceholder: opts.inputPlaceholder,
|
inputPlaceholder: opts.inputPlaceholder,
|
||||||
defaultText: opts.defaultText
|
defaultText: opts.defaultText
|
||||||
}).then(function(res) {
|
}).then(function(res) {
|
||||||
|
|
@ -118,7 +118,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
||||||
this.showPrompt = function(title, message, opts, cb) {
|
this.showPrompt = function(title, message, opts, cb) {
|
||||||
$log.warn(title ? (title + ': ' + message) : message);
|
$log.warn(title ? (title + ': ' + message) : message);
|
||||||
|
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
|
|
||||||
if (isCordova && !opts.forceHTMLPrompt)
|
if (isCordova && !opts.forceHTMLPrompt)
|
||||||
_cordovaPrompt(title, message, opts, cb);
|
_cordovaPrompt(title, message, opts, cb);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue