]> source.dussan.org Git - nextcloud-server.git/commitdiff
It's 'status', not 'result'!
authorThomas Tanghus <thomas@tanghus.net>
Fri, 4 Oct 2013 18:02:33 +0000 (20:02 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Fri, 4 Oct 2013 18:02:33 +0000 (20:02 +0200)
core/js/tags.js

index a4c42905eed77d696f97482051a9bf8e0c3227fc..16dd3d4bf977dfccdb5aa9556fef0b82f8dd5621 100644 (file)
@@ -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);