From: Thomas Tanghus Date: Fri, 4 Oct 2013 18:02:33 +0000 (+0200) Subject: It's 'status', not 'result'! X-Git-Tag: v6.0.0alpha2~35^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0e0927a8876e02a32a162c16e31c20837a269e36;p=nextcloud-server.git It's 'status', not 'result'! --- 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);