提交 960e688d 编写于 作者: C Catouse

* add className option to contextmenu.

上级 45c64a54
...@@ -131,7 +131,8 @@ ...@@ -131,7 +131,8 @@
if (clickResult !== false) { if (clickResult !== false) {
hideContextMenu(); hideContextMenu();
} }
}).empty();; }).empty();
$menu.attr('class', 'dropdown-menu contextmenu-menu' + (options.className ? (' ' + options.className) : ''))
$target.hide().attr('class', 'contextmenu'); $target.hide().attr('class', 'contextmenu');
var itemCreator = options.itemCreator || createMenuItem; var itemCreator = options.itemCreator || createMenuItem;
var itemsType = typeof items; var itemsType = typeof items;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册