[Vtigercrm-commits] [vtiger-commits] r5867 - in /vtigercrm/trunk: Smarty/templates/Buttons_List.tpl include/js/search.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 11 05:25:55 EDT 2006
Author: saraj
Date: Thu May 11 03:25:49 2006
New Revision: 5867
Log:
show hide basic/advance search problem fixed
Modified:
vtigercrm/trunk/Smarty/templates/Buttons_List.tpl
vtigercrm/trunk/include/js/search.js
Modified: vtigercrm/trunk/Smarty/templates/Buttons_List.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Buttons_List.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Buttons_List.tpl Thu May 11 03:25:49 2006
@@ -31,7 +31,7 @@
{/if}
{if $CHECK.index eq 'yes'}
- <td style="padding-right:0px"><a href="#" onClick="moveMe('searchAcc');searchshowhide('searchAcc')" ><img src="{$IMAGE_PATH}btnL3Search.gif" alt="{$APP.LBL_SEARCH_ALT}{$MODULE}..." title="{$APP.LBL_SEARCH_TITLE}{$MODULE}..." border=0></a></a></td>
+ <td style="padding-right:0px"><a href="#" onClick="moveMe('searchAcc');searchshowhide('searchAcc','advSearch')" ><img src="{$IMAGE_PATH}btnL3Search.gif" alt="{$APP.LBL_SEARCH_ALT}{$MODULE}..." title="{$APP.LBL_SEARCH_TITLE}{$MODULE}..." border=0></a></a></td>
{/if}
<td style="padding-right:0px"><a href="#" onClick='return window.open("index.php?module=Contacts&action=vtchat","Chat","width=450,height=400,resizable=1,scrollbars=1");'><img src="{$IMAGE_PATH}tbarChat.gif" alt="{$APP.LBL_CHAT_ALT}" title="{$APP.LBL_CHAT_TITLE}" border=0></a>
</td>
Modified: vtigercrm/trunk/include/js/search.js
==============================================================================
--- vtigercrm/trunk/include/js/search.js (original)
+++ vtigercrm/trunk/include/js/search.js Thu May 11 03:25:49 2006
@@ -1,12 +1,14 @@
-function searchshowhide(argg)
+function searchshowhide(argg,argg2)
{
var x=document.getElementById(argg).style
- if (x.display=="none")
+ var y=document.getElementById(argg2).style
+ if (x.display=="none" && y.display=="none")
{
x.display="block"
}
else {
+ y.display="none"
x.display="none"
}
}
More information about the vtigercrm-commits
mailing list