diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-30 15:30:25 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-30 15:30:25 +0100 |
commit | 2d9d59def728e83f0c66a8201679a6161ab1f36f (patch) | |
tree | e9ab24e81443da461e30e935975fe149e0bfc6a0 /core | |
parent | 27db39bd03e3392c75829e55f934cfe10153bcdc (diff) | |
parent | b32e6fbb629783276d7627677c1548a8d87a7fbc (diff) | |
download | nextcloud-server-2d9d59def728e83f0c66a8201679a6161ab1f36f.tar.gz nextcloud-server-2d9d59def728e83f0c66a8201679a6161ab1f36f.zip |
Merge pull request #20171 from owncloud/tags.js-remove-unneeded-vars
[tags] remove unneeded variables
Diffstat (limited to 'core')
-rw-r--r-- | core/js/tags.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/js/tags.js b/core/js/tags.js index dd9ea005302..b4c2c220df2 100644 --- a/core/js/tags.js +++ b/core/js/tags.js @@ -87,7 +87,6 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl('/tags/{type}/ids', {type: type}); $.getJSON(url, {tag: tag}, function(response) { if(response.status === 'success') { @@ -108,7 +107,6 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl('/tags/{type}/favorites', {type: type}); $.getJSON(url, function(response) { if(response.status === 'success') { @@ -129,7 +127,6 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl('/tags/{type}', {type: type}); $.getJSON(url, function(response) { if(response.status === 'success') { @@ -152,7 +149,6 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl('/tags/{type}/tag/{id}/', {type: type, id: id}); $.post(url, {tag: tag}, function(response) { if(response.status === 'success') { @@ -201,7 +197,6 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl( '/tags/{type}/favorite/{id}/', {type: type, id: id} @@ -228,7 +223,6 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl( '/tags/{type}/unfavorite/{id}/', {type: type, id: id} @@ -255,7 +249,6 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl('/tags/{type}/add', {type: type}); $.post(url,{tag:tag}, function(response) { if(typeof cb == 'function') { @@ -282,12 +275,10 @@ OC.Tags= { } type = type ? type : this.type; var defer = $.Deferred(), - self = this, url = OC.generateUrl('/tags/{type}/delete', {type: type}); if(!tags || !tags.length) { throw new Error(t('core', 'No tags selected for deletion.')); } - var self = this; $.post(url, {tags:tags}, function(response) { if(response.status === 'success') { defer.resolve(response.tags); |