V 3.5 RC 1

This commit is contained in:
Romain Neutron
2011-12-05 00:23:28 +01:00
parent 6f1ee368aa
commit 4c5b7eb658
5563 changed files with 466984 additions and 985416 deletions

View File

@@ -107,7 +107,7 @@
createMenu: function(menu,cmenu) {
var className = cmenu.className;
$.each(cmenu.theme.split(","),function(i,n){className+=' '+cmenu.themePrefix+n;});
var $t = $('<table cellspacing=0 cellpadding=0></table>').click(function(){cmenu.hide(); return false;}); // We wrap a table around it so width can be flexible
var $t = $('<table cellspacing="0" cellpadding="0" class="contextMenuJq"></table>').click(function(){cmenu.hide(); return false;}); // We wrap a table around it so width can be flexible
var $tr = $('<tr></tr>');
var $td = $('<td></td>');
var $div = $('<div class="'+className+'"></div>');
@@ -199,6 +199,7 @@
// Show the context menu
show: function(t,e) {
$('.contextMenuJq').hide();
var cmenu=this, x=e.pageX, y=e.pageY;
cmenu.target = t; // Preserve the object that triggered this context menu so menu item click methods can see it
if (cmenu.beforeShow()!==false) {