[Vtigercrm-commits] [vtiger-commits] r7134 - in /vtigercrm/trunk: Smarty/templates/Header.tpl include/language/en_us.lang.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 10:56:25 EDT 2006
Author: saraj
Date: Thu Jun 15 08:56:18 2006
New Revision: 7134
Log:
Added the default value quick create in the combo options - ahmed
Modified:
vtigercrm/trunk/Smarty/templates/Header.tpl
vtigercrm/trunk/include/language/en_us.lang.php
Modified: vtigercrm/trunk/Smarty/templates/Header.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Header.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Header.tpl Thu Jun 15 08:56:18 2006
@@ -75,12 +75,14 @@
<td style="padding-left:10px" nowrap>
{if $CNT eq 1}
<select class=small style="width:120px" title="Create New" onclick="QCreate(this);">
+ <option value="none">{$APP.LBL_QUICK_CREATE}</option>
{foreach item=detail from=$QCMODULE}
<option value="{$detail.1}">{$APP[$detail.0]}</option>
{/foreach}
</select>
{else}
<select class=small style="width:120px" title="Create New" onchange="QCreate(this);">
+ <option value="none">{$APP.LBL_QUICK_CREATE}</option>
{foreach item=detail from=$QCMODULE}
<option value="{$detail.1}">{$APP[$detail.0]}</option>
{/foreach}
@@ -201,8 +203,10 @@
function QCreate(qcoptions)
{ldelim}
+ var module = qcoptions.options[qcoptions.options.selectedIndex].value;
+ if(module != 'none')
+ {ldelim}
$("status").style.display="inline";
- var module = qcoptions.options[qcoptions.options.selectedIndex].value;
if(module == 'Events')
{ldelim}
module = 'Activities';
@@ -225,6 +229,9 @@
{rdelim}
{rdelim}
);
+ {rdelim}
+ else
+ hide('qcform');
{rdelim}
</script>
Modified: vtigercrm/trunk/include/language/en_us.lang.php
==============================================================================
--- vtigercrm/trunk/include/language/en_us.lang.php (original)
+++ vtigercrm/trunk/include/language/en_us.lang.php Thu Jun 15 08:56:18 2006
@@ -360,6 +360,8 @@
'LBL_EXPORT'=>'Export',
'LBL_EXPORT_ALL'=>'Export All',
+
+'LBL_QUICK_CREATE'=>'Quick Create...',
'Export'=>'Export',
'Import'=>'Import',
More information about the vtigercrm-commits
mailing list