mirror of
https://github.com/sismics/docs.git
synced 2024-11-14 18:27:58 +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
|
||||
$scope.addEntry = function(entry) {
|
||||
entry.name = $scope.vocabulary;
|
||||
Restangular.one('vocabulary').put(entry).then(function() {
|
||||
$scope.entries.push(entry);
|
||||
Restangular.one('vocabulary').put(entry).then(function(data) {
|
||||
$scope.entries.push(data);
|
||||
$scope.entry = {};
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user