Added priority actions to Web UI right-click menu

This commit is contained in:
Christophe Dumez
2010-08-15 08:49:19 +00:00
parent b2f98bd059
commit fefda39284
6 changed files with 63 additions and 5 deletions

View File

@@ -204,7 +204,7 @@ initializeWindows = function(){
}
};
['pause','resume','decreasePrio','increasePrio','recheck'].each(function(item) {
['pause','resume','decreasePrio','increasePrio', 'topPrio', 'bottomPrio', 'recheck'].each(function(item) {
addClickEvent(item, function(e){
new Event(e).stop();
var h = myTable.selectedIds();
@@ -221,7 +221,14 @@ initializeWindows = function(){
});
});
setPriorityFN = function(cmd) {
var h = myTable.selectedIds();
if(h.length){
h.each(function(hash, index){
new Request({url: '/command/'+cmd, method: 'post', data: {hash: hash}}).send();
});
}
}
addClickEvent('bug', function(e){
new Event(e).stop();