mirror of
https://github.com/moparisthebest/mail
synced 2024-11-15 13:45:08 -05: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;
|
||
|
});
|