mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +01:00
Bugfix tags selection, TODO
This commit is contained in:
parent
dcf3e49cb3
commit
5ba3fabf7a
@ -1 +1,2 @@
|
|||||||
- Reordering files (server)
|
- Reordering files (server)
|
||||||
|
- Autocomplete on document title
|
||||||
|
@ -29,9 +29,7 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
|
|||||||
$scope.document = data;
|
$scope.document = data;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$scope.document = {
|
$scope.document = { tags: [] };
|
||||||
tags: []
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,7 +66,7 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
|
|||||||
$scope.pageDocuments();
|
$scope.pageDocuments();
|
||||||
$state.transitionTo('document.view', { id: $stateParams.id });
|
$state.transitionTo('document.view', { id: $stateParams.id });
|
||||||
} else {
|
} else {
|
||||||
$scope.document = {};
|
$scope.document = { tags: [] };
|
||||||
$scope.newFiles = [];
|
$scope.newFiles = [];
|
||||||
$scope.loadDocuments();
|
$scope.loadDocuments();
|
||||||
$scope.alerts.push({ type: 'success', msg: 'Document successfully added' });
|
$scope.alerts.push({ type: 'success', msg: 'Document successfully added' });
|
||||||
|
Loading…
Reference in New Issue
Block a user