mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
Closes #87: Fix delete vocabulary after adding it
This commit is contained in:
parent
5a41e9555e
commit
5de77e35dc
@ -34,8 +34,8 @@ angular.module('docs').controller('SettingsVocabulary', function($scope, Restang
|
|||||||
// Add an entry
|
// Add an entry
|
||||||
$scope.addEntry = function(entry) {
|
$scope.addEntry = function(entry) {
|
||||||
entry.name = $scope.vocabulary;
|
entry.name = $scope.vocabulary;
|
||||||
Restangular.one('vocabulary').put(entry).then(function() {
|
Restangular.one('vocabulary').put(entry).then(function(data) {
|
||||||
$scope.entries.push(entry);
|
$scope.entries.push(data);
|
||||||
$scope.entry = {};
|
$scope.entry = {};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user