diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-10-04 20:02:33 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-10-04 20:02:33 +0200 |
commit | 0e0927a8876e02a32a162c16e31c20837a269e36 (patch) | |
tree | b7e1523953190fe6c116e9b1509b05eb55b2bc32 /core/js | |
parent | f19a236c8e8c06f2a30212970714d66b68218e15 (diff) | |
download | nextcloud-server-0e0927a8876e02a32a162c16e31c20837a269e36.tar.gz nextcloud-server-0e0927a8876e02a32a162c16e31c20837a269e36.zip |
It's 'status', not 'result'!
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/tags.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/tags.js b/core/js/tags.js index a4c42905eed..16dd3d4bf97 100644 --- a/core/js/tags.js +++ b/core/js/tags.js @@ -135,7 +135,7 @@ OC.Tags= { self = this, url = OC.Router.generate('core_tags_tag', {type: type, id: id}); $.post(url, {tag: tag}, function(response) { - if(response.result === 'success') { + if(response.status === 'success') { defer.resolve(response); } else { defer.reject(response); @@ -159,7 +159,7 @@ OC.Tags= { self = this, url = OC.Router.generate('core_tags_untag', {type: type, id: id}); $.post(url, {tag: tag}, function(response) { - if(response.result === 'success') { + if(response.status === 'success') { defer.resolve(response); } else { defer.reject(response); @@ -183,7 +183,7 @@ OC.Tags= { self = this, url = OC.Router.generate('core_tags_favorite', {type: type, id: id}); $.post(url, function(response) { - if(response.result === 'success') { + if(response.status === 'success') { defer.resolve(response); } else { defer.reject(response); @@ -207,7 +207,7 @@ OC.Tags= { self = this, url = OC.Router.generate('core_tags_unfavorite', {type: type, id: id}); $.post(url, function(response) { - if(response.result === 'success') { + if(response.status === 'success') { defer.resolve(); } else { defer.reject(response); |