- Made transfer list sortable in Web UI

* As a default it is sorted by Name
This commit is contained in:
Christophe Dumez 2009-11-27 15:48:45 +00:00
parent 3c6635cdbe
commit 9ada7c809b
4 changed files with 114 additions and 10 deletions

View file

@ -23,6 +23,7 @@ var ProgressBar=new Class({
}
});
obj.vals=vals;
obj.vals.value = $pick(value, 0); // Fix by Chris
obj.vals.dark=new Element('div',{
'id':vals.id+'_dark',
'class':'progressbar_dark',
@ -55,12 +56,18 @@ var ProgressBar=new Class({
});
obj.appendChild(obj.vals.dark);
obj.appendChild(obj.vals.light);
obj.getValue=ProgressBar_getValue;
obj.setValue=ProgressBar_setValue;
if(vals.width)obj.setValue(vals.value);
else setTimeout('ProgressBar_checkForParent("'+obj.id+'")',1);
return obj;
}
});
function ProgressBar_getValue(){
return this.vals.value;
}
function ProgressBar_setValue(value){
value=parseFloat(value);
if(isNaN(value))value=0;