2014-11-19 09:23:10 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var ngModule = angular.module('woUtil');
|
|
|
|
ngModule.service('dialog', Dialog);
|
2014-11-19 11:19:55 -05:00
|
|
|
module.exports = Dialog;
|
2014-11-19 09:23:10 -05:00
|
|
|
|
|
|
|
function Dialog() {}
|
|
|
|
|
2014-11-20 09:14:39 -05:00
|
|
|
Dialog.prototype.info = function(options) {
|
|
|
|
this.displayInfo(options);
|
|
|
|
};
|
2014-11-19 09:23:10 -05:00
|
|
|
|
2014-11-20 09:14:39 -05:00
|
|
|
Dialog.prototype.error = function(options) {
|
|
|
|
this.displayError(options);
|
|
|
|
};
|
2014-11-19 09:23:10 -05:00
|
|
|
|
2014-11-20 09:14:39 -05:00
|
|
|
Dialog.prototype.confirm = function(options) {
|
|
|
|
this.displayConfirm(options);
|
|
|
|
};
|