mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-08 14:08:22 +01:00
fix bug on the new firefox that fired menucontext and onclick at the sametime
This commit is contained in:
parent
10024d8613
commit
3e008c472b
@ -118,11 +118,15 @@
|
||||
{
|
||||
if(opts.context == "true")
|
||||
{
|
||||
if(event.button == 2 || event.originalEvent.button == 2)
|
||||
{
|
||||
return
|
||||
}
|
||||
if(!$(event.target).closest(self.root).length) {
|
||||
$(self.root).hide()
|
||||
$(document).unbind("click",mnhide)
|
||||
}
|
||||
return;
|
||||
return
|
||||
}
|
||||
if(!$(event.target).closest(self.refs.container).length && self.refs.container) {
|
||||
var arr = self.refs.container.length?self.refs.container:[self.refs.container]
|
||||
|
Loading…
Reference in New Issue
Block a user