Author: blabno
Date: 2011-11-29 12:52:43 -0500 (Tue, 29 Nov 2011)
New Revision: 23013
Modified:
sandbox/trunk/ui/contextmenu/ui/src/main/resources/META-INF/resources/jquery.contextMenu.js
Log:
Added browser menu disabling for contextmenu.
Modified:
sandbox/trunk/ui/contextmenu/ui/src/main/resources/META-INF/resources/jquery.contextMenu.js
===================================================================
---
sandbox/trunk/ui/contextmenu/ui/src/main/resources/META-INF/resources/jquery.contextMenu.js 2011-11-29
17:03:07 UTC (rev 23012)
+++
sandbox/trunk/ui/contextmenu/ui/src/main/resources/META-INF/resources/jquery.contextMenu.js 2011-11-29
17:52:43 UTC (rev 23013)
@@ -84,6 +84,8 @@
});
});
}
+ // Disable browser context menu (requires both selectors to work in
IE/Safari + FF/Chrome)
+ $(el).bind('contextmenu', function() { return false; });
});
return $(this);
Show replies by date