CC-3463 : Usability improvements for timeline

started to add cursor options to context menu.
This commit is contained in:
Naomi Aro 2012-03-27 15:46:25 +02:00
parent 296a5c583a
commit dfc6ae6273
2 changed files with 27 additions and 2 deletions

View file

@ -792,6 +792,26 @@ var AIRTIME = (function(AIRTIME){
data = $tr.data("aData");
function processMenuItems(oItems) {
//define a select cursor.
if (oItems.selCurs !== undefined) {
callback = function() {
$(this).parents('tr').next().addClass("cursor-selected-row");
};
oItems.selCurs.callback = callback;
}
//define a remove cursor.
if (oItems.delCurs !== undefined) {
callback = function() {
$(this).parents('tr').next().removeClass("cursor-selected-row");
};
oItems.delCurs.callback = callback;
}
//define a delete callback.
if (oItems.del !== undefined) {