summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-10-30 10:02:15 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-10-30 10:02:15 +0100
commitb32e6fbb629783276d7627677c1548a8d87a7fbc (patch)
tree440469db9d339eb66ceb42f819ff5675b646545e
parent0c1a8c953aba8968301f0871a607d5abcf7b3003 (diff)
downloadnextcloud-server-b32e6fbb629783276d7627677c1548a8d87a7fbc.tar.gz
nextcloud-server-b32e6fbb629783276d7627677c1548a8d87a7fbc.zip
[tags] remove unneeded variables
-rw-r--r--core/js/tags.js9
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);