Commit e6e4c489 by Bence Dányi

firewall_gui: format code

parent 3ed3adb8
...@@ -228,7 +228,7 @@ function ListController(url) { ...@@ -228,7 +228,7 @@ function ListController(url) {
$scope.deleteEntity = function(id) { $scope.deleteEntity = function(id) {
$.ajax({ $.ajax({
url: url.split('/')[2]+'/'+id+'/delete/', url: url.split('/')[2] + '/' + id + '/delete/',
type: 'post', type: 'post',
success: reloadList success: reloadList
}); });
...@@ -307,6 +307,7 @@ function EntityController(url, init) { ...@@ -307,6 +307,7 @@ function EntityController(url, init) {
} }
}) })
} }
function reloadEntity() { function reloadEntity() {
$http.get(url + id + '/').success(function success(data) { $http.get(url + id + '/').success(function success(data) {
$scope.entity = data; $scope.entity = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment