mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 09:46:17 +00:00
Bugfix tags selection, TODO
This commit is contained in:
@@ -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' });
|
||||||
|
|||||||
Reference in New Issue
Block a user