|
|
@ -22,46 +22,48 @@ |
|
|
|
|
|
|
|
|
|
|
|
//create a context menu |
|
|
|
//create a context menu |
|
|
|
var context_menu = new ContextMenu({ |
|
|
|
var context_menu = new ContextMenu({ |
|
|
|
targets: '.menu-target', |
|
|
|
targets : '.menu-target', |
|
|
|
menu: 'contextmenu', |
|
|
|
menu : 'contextmenu', |
|
|
|
actions: { |
|
|
|
actions : { |
|
|
|
Delete: function(element,ref) { |
|
|
|
Delete : function (element, ref) { |
|
|
|
deleteFN(); |
|
|
|
deleteFN(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
DeleteHD: function(element,ref) { |
|
|
|
DeleteHD : function (element, ref) { |
|
|
|
deleteHDFN(); |
|
|
|
deleteHDFN(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
Start: function(element, ref) { |
|
|
|
Start : function (element, ref) { |
|
|
|
startFN(); |
|
|
|
startFN(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
Pause: function(element, ref) { |
|
|
|
Pause : function (element, ref) { |
|
|
|
pauseFN(); |
|
|
|
pauseFN(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
prioTop: function(element, ref) { |
|
|
|
prioTop : function (element, ref) { |
|
|
|
setPriorityFN('topPrio'); |
|
|
|
setPriorityFN('topPrio'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
prioUp: function(element, ref) { |
|
|
|
prioUp : function (element, ref) { |
|
|
|
setPriorityFN('increasePrio'); |
|
|
|
setPriorityFN('increasePrio'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
prioDown: function(element, ref) { |
|
|
|
prioDown : function (element, ref) { |
|
|
|
setPriorityFN('decreasePrio'); |
|
|
|
setPriorityFN('decreasePrio'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
prioBottom: function(element, ref) { |
|
|
|
prioBottom : function (element, ref) { |
|
|
|
setPriorityFN('bottomPrio'); |
|
|
|
setPriorityFN('bottomPrio'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
ForceRecheck: function(element, ref) { |
|
|
|
ForceRecheck : function (element, ref) { |
|
|
|
recheckFN(); |
|
|
|
recheckFN(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
UploadLimit: function(element, red) { |
|
|
|
UploadLimit : function (element, red) { |
|
|
|
uploadLimitFN(); |
|
|
|
uploadLimitFN(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
DownloadLimit: function(element, red) { |
|
|
|
DownloadLimit : function (element, red) { |
|
|
|
downloadLimitFN(); |
|
|
|
downloadLimitFN(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
offsets: { x:-15, y:2 } |
|
|
|
offsets : { |
|
|
|
|
|
|
|
x : -15, |
|
|
|
|
|
|
|
y : 2 |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
myTable.setup('myTable', 4, context_menu); |
|
|
|
myTable.setup('myTable', 4, context_menu); |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|