add notebook, add sub notebook, delete, rename [ok]

This commit is contained in:
iiuazz
2014-09-11 14:31:25 +08:00
parent 2bed5b31fa
commit dc2435a83d
6 changed files with 161 additions and 90 deletions

View File

@ -226,6 +226,7 @@ LEA.cmroot = 1;
});
*/
// bind event
var me = $(option.parent).on('contextmenu', option.children, function(e) {
var bShowContext = (option.onContextMenu && $.isFunction(option.onContextMenu)) ? option.onContextMenu.call(this, e) : true;
if (bShowContext) {
@ -234,6 +235,8 @@ LEA.cmroot = 1;
}
root.showMenu(e, this);
}
// 阻止冒泡, 默认事件
e.preventDefault();
return false;
});