sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This commit is contained in:
Martin Geno 2016-10-11 20:50:30 +02:00
parent e7ac302cfe
commit ca4272c561
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ angular.module('warehost')
}; };
$scope.add = function(){ $scope.add = function(){
$scope.obj = {}; $scope.obj = {};
} };
$scope.save = function(){ $scope.save = function(){
if($scope.obj.ID){ if($scope.obj.ID){
$http.put(config.api+'/web/website/'+$stateParams.websiteid+'/page/'+$scope.obj.ID,$scope.obj).then(submitresult); $http.put(config.api+'/web/website/'+$stateParams.websiteid+'/page/'+$scope.obj.ID,$scope.obj).then(submitresult);

View File

@ -15,7 +15,7 @@ angular.module('warehost')
$scope.obj = {}; $scope.obj = {};
} }
function load(){ function load(){
$http.get(config.api+'/user/').then(function(res){ $http.get(config.api+'/user').then(function(res){
$scope.loginlist = res.data.data; $scope.loginlist = res.data.data;
$http.get(config.api+'/web/website/'+$stateParams.websiteid+'/permission').then(function(res){ $http.get(config.api+'/web/website/'+$stateParams.websiteid+'/permission').then(function(res){
session.set(res); session.set(res);