mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
16 lines
377 B
JavaScript
16 lines
377 B
JavaScript
define(function() {
|
|
'use strict';
|
|
|
|
var DialogCtrl = function($scope) {
|
|
$scope.confirm = function(ok) {
|
|
$scope.state.dialog.open = false;
|
|
|
|
if ($scope.state.dialog.callback) {
|
|
$scope.state.dialog.callback(ok);
|
|
}
|
|
$scope.state.dialog.callback = undefined;
|
|
};
|
|
};
|
|
|
|
return DialogCtrl;
|
|
}); |