Index: trunk/kernel/admin/include/toolbar/editcategory_relationselect.php =================================================================== diff -u -r13 -r1317 --- trunk/kernel/admin/include/toolbar/editcategory_relationselect.php (.../editcategory_relationselect.php) (revision 13) +++ trunk/kernel/admin/include/toolbar/editcategory_relationselect.php (.../editcategory_relationselect.php) (revision 1317) @@ -221,8 +221,9 @@ AddButtonAction('select',"check_submit();"); //edit AddButtonAction('stop',"window.close();"); //delete AddButtonAction('view',"toggleMenu(); window.FW_showMenu(window.cat_menu,getRealLeft(button) - ((document.all) ? 6 : -2),getRealTop(button)+32);"); - AddButtonAction('search_a',"setSearchMenu(); window.FW_showMenu(window.SearchMenu,getRealLeft(button)-134 - ((document.all) ? 8 : -1),getRealTop(button)+22);"); + //AddButtonAction('search_a',"setSearchMenu(); window.FW_showMenu(window.SearchMenu,getRealLeft(button)-134 - ((document.all) ? 8 : -1),getRealTop(button)+22);"); AddButtonAction('search_b',"search_submit();"); + AddButtonAction('search_c',"ClearSearch();"); } function AdminCatNav(url) @@ -391,41 +392,41 @@ } - function setSearchMenu() - { +// function setSearchMenu() +// { +// +// window.SearchMenu = new Menu("search"); +// SearchMenu.addMenuItem(lang_All,"SetSearchType('all');",getSType('all')); +// SearchMenu.addMenuSeparator() +// +// SearchMenu.addMenuItem(lang_Categories, "SetSearchType('categories');",getSType('categories')); +// param = ""; +// +// for (var i = 0; i < tabIDs.length; i++) +// { +// d = document.getElementById(tabIDs[i]); +// if(d) +// { +// tabname = d.getAttribute("tabTitle"); +// param = "SetSearchType('"+tabname+"');"; +// +// SearchMenu.addMenuItem(tabname,param,getSType(tabname)); +// } +// } +// +// SearchMenu.addMenuSeparator(); +// SearchMenu.addMenuItem(lang_All+' '+lang_Categories,"SetSearchScope('0');",getSScope(0)); +// SearchMenu.addMenuItem(lang_SubSearch,"ToggleNewSearch();",isNewSearch()); +// SearchMenu.addMenuItem(lang_Current+' '+lang_Categories,"SetSearchScope('2');",getSScope(2)); +// SearchMenu.addMenuItem(lang_Within+' '+lang_Categories,"SetSearchScope('1');",getSScope(1)); +// +// SearchMenu.addMenuSeparator(); +// +// window.SearchMenu.addMenuItem('$mnuClearSearch',"ClearSearch();",""); +// window.triedToWriteMenus = false; +// window.SearchMenu.writeMenus(); +// } - window.SearchMenu = new Menu("search"); - SearchMenu.addMenuItem(lang_All,"SetSearchType('all');",getSType('all')); - SearchMenu.addMenuSeparator() - - SearchMenu.addMenuItem(lang_Categories, "SetSearchType('categories');",getSType('categories')); - param = ""; - - for (var i = 0; i < tabIDs.length; i++) - { - d = document.getElementById(tabIDs[i]); - if(d) - { - tabname = d.getAttribute("tabTitle"); - param = "SetSearchType('"+tabname+"');"; - - SearchMenu.addMenuItem(tabname,param,getSType(tabname)); - } - } - - SearchMenu.addMenuSeparator(); - SearchMenu.addMenuItem(lang_All+' '+lang_Categories,"SetSearchScope('0');",getSScope(0)); - SearchMenu.addMenuItem(lang_SubSearch,"ToggleNewSearch();",isNewSearch()); - SearchMenu.addMenuItem(lang_Current+' '+lang_Categories,"SetSearchScope('2');",getSScope(2)); - SearchMenu.addMenuItem(lang_Within+' '+lang_Categories,"SetSearchScope('1');",getSScope(1)); - - SearchMenu.addMenuSeparator(); - - window.SearchMenu.addMenuItem('$mnuClearSearch',"ClearSearch();",""); - window.triedToWriteMenus = false; - window.SearchMenu.writeMenus(); - } - function Category_SortMenu(caption) { menu_sorting = new Menu(caption); Index: trunk/admin/relation_select.php =================================================================== diff -u -r898 -r1317 --- trunk/admin/relation_select.php (.../relation_select.php) (revision 898) +++ trunk/admin/relation_select.php (.../relation_select.php) (revision 1317) @@ -295,9 +295,37 @@
- | - | /icon16_search.gif" alt="" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" src="/arrow16.gif" onmouseover="this.src='/icon16_search_f2.gif'" onmouseout="this.src='/icon16_search.gif'" style="cursor:hand" width="22" width="22">" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" src="/arrow16.gif" onmouseover="this.src='/arrow16_f2.gif'" onmouseout="this.src='/arrow16.gif'" style="cursor:hand"> - /icon16_search_reset.gif" alt="" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" onmouseover="this.src='/icon16_search_reset_f2.gif'" onmouseout="this.src='/icon16_search_reset.gif'" style="cursor:hand" width="22" width="22"> + | + | + /icon16_search.gif" + alt="" + align="absMiddle" + onclick="this.action = this.getAttribute('action'); actionHandler(this);" + src="/arrow16.gif" + onmouseover="this.src='/icon16_search_f2.gif'" + onmouseout="this.src='/icon16_search.gif'" + style="cursor:hand" + width="22" + width="22"> + + + /icon16_search_reset.gif" + alt="" + align="absMiddle" + onclick="this.action = this.getAttribute('action'); actionHandler(this);" + onmouseover="this.src='/icon16_search_reset_f2.gif'" onmouseout="this.src='/icon16_search_reset.gif'" style="cursor:hand" width="22" width="22"> |