|
|
@ -140,11 +140,14 @@ ContextMenu.prototype = { |
|
|
|
$('context-menu').style['top'] = (render_y + 'px');
|
|
|
|
$('context-menu').style['top'] = (render_y + 'px');
|
|
|
|
Element.update('context-menu', ''); |
|
|
|
Element.update('context-menu', ''); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// some IE-versions only know the srcElement
|
|
|
|
|
|
|
|
var target = e.target ? e.target : e.srcElement; |
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Updater({success:'context-menu'}, this.url, |
|
|
|
new Ajax.Updater({success:'context-menu'}, this.url, |
|
|
|
{asynchronous:true, |
|
|
|
{asynchronous:true, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
evalScripts:true, |
|
|
|
evalScripts:true, |
|
|
|
parameters: jQuery(e.target).closest("form").serialize(), |
|
|
|
parameters: jQuery(target).closest("form").serialize(), |
|
|
|
onComplete:function(request){ |
|
|
|
onComplete:function(request){ |
|
|
|
dims = $('context-menu').getDimensions(); |
|
|
|
dims = $('context-menu').getDimensions(); |
|
|
|
menu_width = dims.width; |
|
|
|
menu_width = dims.width; |
|
|
|