[fix] context menu without .openerp class

bzr revid: nicolas.vanhoren@openerp.com-20120228143446-a5hf4po2dtxgskye
This commit is contained in:
niv-openerp 2012-02-28 15:34:46 +01:00
parent 32cd30b7f5
commit f1280e67f2
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
/*
Fork of some unlicensed library found somewhere, don't hesitate to
patch it directly.
*/
(function($) {
var menu,shadow,trigger,content,hash,currentTarget;
var defaults= {
@ -30,7 +34,7 @@
};
$.fn.contextMenu= function(id,options) {
if(!menu) {
menu=$('<div id="jqContextMenu"></div>').hide().css({
menu=$('<div id="jqContextMenu" class="openerp"></div>').hide().css({
position:'absolute',
zIndex:'2000'
}).appendTo('body').bind('click', function(e) {