diff --git a/app/assets/javascripts/context_menu.js b/app/assets/javascripts/context_menu.js index a6e7520d9c..f60aa1181a 100644 --- a/app/assets/javascripts/context_menu.js +++ b/app/assets/javascripts/context_menu.js @@ -140,11 +140,14 @@ ContextMenu.prototype = { $('context-menu').style['top'] = (render_y + 'px'); 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, {asynchronous:true, method: 'get', evalScripts:true, - parameters: jQuery(e.target).closest("form").serialize(), + parameters: jQuery(target).closest("form").serialize(), onComplete:function(request){ dims = $('context-menu').getDimensions(); menu_width = dims.width;