Skip to content

Commit

Permalink
Fix modal dismiss callback
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Mar 9, 2018
1 parent 9106479 commit 02ab874
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 6,422 deletions.
2 changes: 1 addition & 1 deletion public/js/controllers/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define(['controllers/projects/edit'], function () {
}).catch(function (response) {
swal('Error', 'Could not create project: ' + response.status, 'error');
});
});
}, function () {});
}

$scope.refresh();
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/projects/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ define(['controllers/projects/taskRunner'], function() {
size: 'lg'
}).result.then(function() {
$scope.reload();
});
}, function () {});
}
}]);
});
4 changes: 2 additions & 2 deletions public/js/controllers/projects/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Environment not added: ' + response.status, 'error');
});
});
}, function () {});
}

$scope.editEnvironment = function (env) {
Expand All @@ -70,7 +70,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Environment not updated: ' + response.status, 'error');
});
});
}, function () {});
}

$scope.reload();
Expand Down
6 changes: 3 additions & 3 deletions public/js/controllers/projects/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Inventory not added: ' + response.status, 'error');
});
});
}, function () {});
});
}

Expand All @@ -73,7 +73,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Inventory not updated: ' + response.status, 'error');
});
});
}, function () {});
});
}

Expand All @@ -92,7 +92,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Inventory not updated: ' + response.status, 'error');
});
});
}, function () {});
}

$scope.getKeys = function (cb) {
Expand Down
4 changes: 2 additions & 2 deletions public/js/controllers/projects/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ define(function () {
}).catch(function (response) {
swal('error', 'could not add key:' + response.status, 'error');
});
});
}, function () {});
}

$scope.update = function (key) {
Expand All @@ -66,7 +66,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'could not update key:' + response.status, 'error');
});
});
}, function () {});
}

$scope.reload();
Expand Down
4 changes: 2 additions & 2 deletions public/js/controllers/projects/repositories.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Repository not updated: ' + response.status, 'error');
});
});
}, function () {});
}

$scope.add = function () {
Expand All @@ -81,7 +81,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Repository not added: ' + response.status, 'error');
});
});
}, function () {});
}

$scope.reload();
Expand Down
6 changes: 3 additions & 3 deletions public/js/controllers/projects/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ define(['controllers/projects/taskRunner'], function () {
}).catch(function (response) {
swal('error', 'could not add template:' + response.status, 'error');
});
});
}, function () {});
}

$scope.update = function (template) {
Expand Down Expand Up @@ -149,7 +149,7 @@ define(['controllers/projects/taskRunner'], function () {
scope: scope,
size: 'lg'
});
})
}, function () {});
}

$scope.showAll = function() {
Expand Down Expand Up @@ -200,7 +200,7 @@ define(['controllers/projects/taskRunner'], function () {
}).catch(function (response) {
swal('error', 'could not add template:' + response.status, 'error');
});
});
}, function () {});
}

$scope.reload();
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/projects/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'User not added: ' + response.status, 'error');
});
});
}, function () {});
});
}

Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ define(function () {
}).error(function (response) {
swal('Error', 'API responded with HTTP ' + response.status, 'error');
});
});
}, function () {});
}
}]);
});
Loading

0 comments on commit 02ab874

Please sign in to comment.