[Vtigercrm-commits] [vtiger-commits] r6454 - in /vtigercrm/trunk: Smarty/templates/MySites.tpl Smarty/templates/MySitesContents.tpl modules/Portal/ListView.php modules/Portal/Portal.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri May 26 08:45:47 EDT 2006


Author: don
Date: Fri May 26 06:45:40 2006
New Revision: 6454

Log:
Puff effect added and select option issue has been fixed in Portal

Modified:
    vtigercrm/trunk/Smarty/templates/MySites.tpl
    vtigercrm/trunk/Smarty/templates/MySitesContents.tpl
    vtigercrm/trunk/modules/Portal/ListView.php
    vtigercrm/trunk/modules/Portal/Portal.js

Modified: vtigercrm/trunk/Smarty/templates/MySites.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/MySites.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/MySites.tpl Fri May 26 06:45:40 2006
@@ -12,7 +12,11 @@
 
 	-->*}
 
-	<script language="JavaScript" type="text/javascript" src="modules/Portal/Portal.js"></script>
+<script src="include/scriptaculous/prototype.js" type="text/javascript"></script>
+<script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script>
+<script language="JavaScript" type="text/javascript" src="include/js/ajax.js"></script>
+<script language="JavaScript" type="text/javascript" src="modules/Portal/Portal.js"></script>
+
 {include file="Buttons_List1.tpl"}
 <br>
 <table border="0" cellpadding="0" cellspacing="0" width="98%" align="center">

Modified: vtigercrm/trunk/Smarty/templates/MySitesContents.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/MySitesContents.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/MySitesContents.tpl Fri May 26 06:45:40 2006
@@ -1,8 +1,12 @@
 <table class="small" border="0" cellpadding="5" cellspacing="0" width="100%">
 <tbody><tr>
 <td style="padding: 5px;" bgcolor="#333333"><span style="color: rgb(255, 255, 255);">{$MOD.LBL_BOOKMARK_LIST} : </span>
-
+{$PORTAL_COUNT}
+{if $PORTAL_COUNT eq 1}
+<select id="urllist" name="urllist" style="border: 0px solid rgb(204, 204, 204); width: 90%;" onClick="setSite(this);">
+{else}
 <select id="urllist" name="urllist" style="border: 0px solid rgb(204, 204, 204); width: 90%;" onChange="setSite(this);">
+{/if}
 {foreach item=portaldetails key=sno from=$PORTALS}
 <option value="{$portaldetails.portalurl}">{$portaldetails.portalname}</option>
 {/foreach}

Modified: vtigercrm/trunk/modules/Portal/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Portal/ListView.php (original)
+++ vtigercrm/trunk/modules/Portal/ListView.php Fri May 26 06:45:40 2006
@@ -39,6 +39,7 @@
 $smarty->assign("IMAGE_PATH", $image_path);
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
+$smarty->assign("PORTAL_COUNT", count($portal_info));
 $smarty->assign("PORTALS", $portal_info);
 $smarty->assign("MODULE", $currentModule);
 $smarty->assign("CATEGORY", getParentTab());

Modified: vtigercrm/trunk/modules/Portal/Portal.js
==============================================================================
--- vtigercrm/trunk/modules/Portal/Portal.js (original)
+++ vtigercrm/trunk/modules/Portal/Portal.js Fri May 26 06:45:40 2006
@@ -20,13 +20,13 @@
 {
 	hide('status');
 	document.getElementById('editportal_cont').innerHTML = response.responseText;
+
 }
 function fetchContents(mode)
 {
 	show('status');
 	if(mode == 'data')
 	{
-		fninvsh('orgLay');
 		getObj('datatab').className = 'SiteSel';
 		getObj('managetab').className = 'SiteUnSel';
 	}
@@ -65,7 +65,7 @@
 		alert('Site Name cannot be empty')
 		return false;
 	}
-	fninvsh('orgLay');
+	Effect.Puff('orgLay');	
 	show('status');
 	var portalurl = document.getElementById('portalurl').value;
 	var portalname = document.getElementById('portalname').value;





More information about the vtigercrm-commits mailing list