Add creation & deletion of addressbooks

This commit is contained in:
Francis Lachapelle
2014-11-11 22:31:28 -05:00
parent 2672f1a8fc
commit 87cc6bed7c
10 changed files with 308 additions and 62 deletions
+18 -4
View File
@@ -4,7 +4,10 @@
(function() {
'use strict';
/* Dialog */
/**
* @name Dialog
* @constructor
*/
function Dialog() {
}
@@ -17,14 +20,25 @@
};
Dialog.confirm = function(title, content) {
var alertPopup = this.$ionicPopup.confirm({
var confirmPopup = this.$ionicPopup.confirm({
title: title,
template: content
});
return alertPopup;
return confirmPopup;
};
/* The factory we'll use to register with Angular */
Dialog.prompt = function(title, content) {
var promptPopup = this.$ionicPopup.prompt({
title: title,
inputPlaceholder: content
});
return promptPopup;
};
/**
* @memberof Dialog
* @desc The factory we'll register as sgDialog in the Angular module SOGo.UIMobile
*/
Dialog.$factory = ['$ionicPopup', function($ionicPopup) {
angular.extend(Dialog, { $ionicPopup: $ionicPopup });