1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(trunk web) don't use reserved word 'class' as a local variable name

This commit is contained in:
Charles Kerr 2009-05-23 23:52:36 +00:00
parent ae8335bf7a
commit f1afe16889

View file

@ -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(' ');
},