From 5b39c38d823d9c71efa23b2a461e43b9eaf24863 Mon Sep 17 00:00:00 2001 From: taggon Date: Wed, 31 Aug 2011 02:50:21 +0000 Subject: [PATCH] Fixed a bug that info layer changes scroll position git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8962 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/common.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/js/common.js b/common/js/common.js index d564bc64d..7d8e0d372 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -957,14 +957,16 @@ jQuery(function($){ }; var response_tags = 'error message menus'.split(' '); + // prevent default action + evt.preventDefault(); + evt.stopPropagation(); + if(is_def(window.xeVid)) params.vid = xeVid; - if(is_def(XE.loaded_popup_menus[params.menu_id])) return XE.displayPopupMenu(params, response_tags, params) && false; + if(is_def(XE.loaded_popup_menus[params.menu_id])) return XE.displayPopupMenu(params, response_tags, params); show_waiting_message = false; exec_xml('member', action, params, XE.displayPopupMenu, response_tags, params); show_waiting_message = true; - - return false; }); /**