mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
팝업메뉴의 줄나눔 안되도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4817 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
be1224b253
commit
1436a41e58
2 changed files with 1 additions and 51 deletions
|
|
@ -83,7 +83,7 @@ a.bold { font-weight:bold; }
|
|||
#popup_menu_area{ position:absolute; background:#fff; border:2px solid #eee; -moz-border-radius:5px; -webkit-border-radius:5px; margin:0; padding:0;}
|
||||
#popup_menu_area *{ margin:0; padding:0; list-style:none; font-size:12px; line-height:normal;}
|
||||
#popup_menu_area ul{ border:1px solid #ddd; -moz-border-radius:5px; -webkit-border-radius:5px; padding:10px 10px 5px 10px;}
|
||||
#popup_menu_area li{ padding:2px 0 2px 20px; background-repeat:no-repeat; background-position:left center; margin-bottom:3px; }
|
||||
#popup_menu_area li{ padding:2px 0 2px 20px; background-repeat:no-repeat; background-position:left center; margin-bottom:3px; white-space:nowrap;}
|
||||
#popup_menu_area li a{ text-decoration:none; color:#000;}
|
||||
#popup_menu_area li a:hover,
|
||||
#popup_menu_area li a:active,
|
||||
|
|
|
|||
|
|
@ -475,56 +475,6 @@ function displayPopupMenu(ret_obj, response_tags, params) {
|
|||
var menu_id = params["menu_id"];
|
||||
var menus = ret_obj['menus'];
|
||||
var html = "";
|
||||
/*
|
||||
if(loaded_popup_menus[menu_id]) {
|
||||
html = loaded_popup_menus[menu_id];
|
||||
} else {
|
||||
if(menus) {
|
||||
var item = menus['item'];
|
||||
if(item.length<1) item = new Array(item);
|
||||
if(item.length) {
|
||||
for(var i=0;i<item.length;i++) {
|
||||
var url = item[i].url;
|
||||
var str = item[i].str;
|
||||
var icon = item[i].icon;
|
||||
var target = item[i].target;
|
||||
|
||||
var styleText = "";
|
||||
|
||||
if(icon) styleText = " style=\"background:url('"+icon+"') no-repeat left center; padding-left:18px; \"";
|
||||
switch(target) {
|
||||
case "popup" :
|
||||
click_str = " onclick=\"popopen('"+url+"','"+target+"')\"; return false;";
|
||||
break;
|
||||
case "self" :
|
||||
click_str = " onclick=\"location.href='"+url+"'\"; return false;";
|
||||
break;
|
||||
case "javascript" :
|
||||
click_str = " onclick=\""+url+"\"; return false;";
|
||||
break;
|
||||
default :
|
||||
click_str = " onclick=\"window.open('"+url+"')\"; return false;";
|
||||
break;
|
||||
}
|
||||
|
||||
html += '<div class="item" onmouseover="this.className=\'item_on\'" onmouseout="this.className=\'item\'"'+styleText+click_str+'>'+str+'</div> ';
|
||||
}
|
||||
}
|
||||
}
|
||||
loaded_popup_menus[menu_id] = html;
|
||||
}
|
||||
|
||||
// 레이어 출력
|
||||
if(html) {
|
||||
var area = xGetElementById("popup_menu_area");
|
||||
xInnerHtml(area, "<div class=\"box\">"+html+"</div>");
|
||||
xLeft(area, params["page_x"]);
|
||||
xTop(area, params["page_y"]);
|
||||
if(xWidth(area)+xLeft(area)>xClientWidth()+xScrollLeft()) xLeft(area, xClientWidth()-xWidth(area)+xScrollLeft());
|
||||
if(xHeight(area)+xTop(area)>xClientHeight()+xScrollTop()) xTop(area, xClientHeight()-xHeight(area)+xScrollTop());
|
||||
area.style.visibility = "visible";
|
||||
}
|
||||
*/
|
||||
|
||||
if(loaded_popup_menus[menu_id]) {
|
||||
html = loaded_popup_menus[menu_id];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue