Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DialogController.js « controllers « scripts « ngax « webroot « Server « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ec45eaa5f344dde46a9d322bd33fbc19534055bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
backupApp.controller('DialogController', function($scope, DialogService) {
    $scope.state = DialogService.watch($scope);

    $scope.onButtonClick = function(index) {
        var cur = $scope.state.CurrentItem;        
        DialogService.dismissCurrent();

        if (cur.callback)
            cur.callback(index);
    };
    
});