mirror of
https://github.com/nextcloud/server.git
synced 2024-08-11 02:11:21 +02:00
It's 'status', not 'result'!
This commit is contained in:
parent
f19a236c8e
commit
0e0927a887
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user