mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
(trunk web) don't use reserved word 'class' as a local variable name
This commit is contained in:
parent
ae8335bf7a
commit
f1afe16889
1 changed files with 6 additions and 6 deletions
|
@ -758,21 +758,21 @@ TorrentFile.prototype = {
|
|||
|
||||
refreshWantedHTML: function() {
|
||||
var element = this.element();
|
||||
var class = element[0].className.replace(/ skip| complete/g, '').split(' ');
|
||||
var c = element[0].className.replace(/ skip| complete/g, '').split(' ');
|
||||
|
||||
if(!this._wanted)
|
||||
class.push('skip');
|
||||
c.push('skip');
|
||||
if(this._done>=this._size)
|
||||
class.push('complete');
|
||||
c.push('complete');
|
||||
|
||||
element[0].className = class.join(' ');
|
||||
element[0].className = c.join(' ');
|
||||
},
|
||||
|
||||
refreshPriorityHTML: function() {
|
||||
var priority = { '1': 'high', '0': 'normal', '-1': 'low' }[new String(this._prio)];
|
||||
var class = this._priority_control[0].className.replace(/ high| normal| low/g, '').split(' ');
|
||||
var c = this._priority_control[0].className.replace(/ high| normal| low/g, '').split(' ');
|
||||
|
||||
class.push(priority)
|
||||
c.push(priority)
|
||||
this._priority_control[0].className = class.join(' ');
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue