sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0

add int without nullint of golang sql

This commit is contained in:
Martin Geno 2016-11-16 02:03:29 +01:00
parent 822e7fe3fe
commit 87ddb163c2
2 changed files with 4 additions and 10 deletions

View File

@ -36,7 +36,7 @@
span.glyphicon.glyphicon-floppy-disk
| Save
td(data-title="'Postfach'")
span(ng-repeat="i in loginlist",ng-if="i.ID == item.login.Int64") {{i.username}}
span(ng-repeat="i in loginlist",ng-if="i.ID == item.login") {{i.username}}
td(data-title="'Option'")
.btn-group.btn-group-xs
span.btn.btn-default(ng-click="item.isEditing = true",ng-if="!item.isEditing")

View File

@ -16,12 +16,9 @@ angular.module('warehost')
$scope.obj = e.source.nodeScope.$modelValue;
$scope.obj.position = e.dest.index;
if(e.dest.nodesScope.$nodeScope){
$scope.obj.parentid = {
Int64: e.dest.nodesScope.$nodeScope.$modelValue.ID,
Valid: true
};
$scope.obj.parentid = e.dest.nodesScope.$nodeScope.$modelValue.ID;
}else{
$scope.obj.parentid = {Int64: 0, Valid: false};
$scope.obj.parentid = null;
}
$http.patch(config.api+'/web/website/'+$stateParams.websiteid+'/menu/'+$scope.obj.ID,$scope.obj).then(submitresult);
}
@ -59,10 +56,7 @@ angular.module('warehost')
$scope.add = function(a){
$scope.obj = {};
if(a){
$scope.obj.parentid = {
Int64: a.$modelValue.ID,
Valid: true
};
$scope.obj.parentid = a.$modelValue.ID;
$scope.parent = a.$modelValue;
}else{
$scope.parent = null;