[Vtigercrm-commits] [vtiger-commits] r6337 - in /vtigercrm/trunk: Smarty/templates/Webmails.tpl modules/Webmails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 23 21:25:54 EDT 2006
Author: mmbrich
Date: Tue May 23 19:25:52 2006
New Revision: 6337
Log:
show hidden via javascript instead of a page reload
Modified:
vtigercrm/trunk/Smarty/templates/Webmails.tpl
vtigercrm/trunk/modules/Webmails/ListView.php
Modified: vtigercrm/trunk/Smarty/templates/Webmails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Webmails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Webmails.tpl Tue May 23 19:25:52 2006
@@ -48,7 +48,7 @@
</td>
<td width="12%">
<img src="{$IMAGE_PATH}webmail_settings.gif" align="absmiddle" />
- <a href="javascript:;" onclick="window.location = window.location+'&show_hidden=true';" class="webMnu">{$MOD.LBL_SHOW_HIDDEN}</a>
+ <a href="javascript:;" onclick="show_hidden();" class="webMnu">{$MOD.LBL_SHOW_HIDDEN}</a>
</td>
<td width="18%">
<img src="{$IMAGE_PATH}webmail_settings.gif" align="absmiddle" />
@@ -116,7 +116,7 @@
<td> </td>
<td style="padding:1px;" align="left">
<div id="rssScroll">
- <table class="rssTable" cellspacing="0" cellpadding="0" border="0">
+ <table class="rssTable" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<th width="5%"><input type="checkbox" name="checkbox" value="checkbox" /></th>
{foreach item=element from=$LISTHEADER}
Modified: vtigercrm/trunk/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/ListView.php (original)
+++ vtigercrm/trunk/modules/Webmails/ListView.php Tue May 23 19:25:52 2006
@@ -59,6 +59,15 @@
}
}
);
+}
+function show_hidden() {
+ var els = document.getElementsByClassName("deletedRow");
+ for(var i=0;i<els.length;i++) {
+ if(els[i].style.display == "none")
+ els[i].style.display ='';
+ else
+ els[i].style.display = 'none';
+ }
}
</script>
<?php
@@ -221,13 +230,8 @@
$overview=$elist["overview"];
?>
-</td>
-</table>
-</td></tr>
-</table>
<!-- MAIN MSG LIST TABLE -->
-<table width="100%" cellpadding="2" cellspacing="0" align="center" border="0" class=""><tr><td>
<?
if($numEmails != 0)
$navigation_array = getNavigationValues($_REQUEST["start"], $numEmails, $c);
@@ -344,9 +348,6 @@
}
}
?>
- </table>
- </td></tr>
-</table>
<?
$navigationOutput = getTableHeaderNavigation($navigation_array,'&parenttab=My%20Home%20Page&mailbox='.$mailbox,"Webmails","index",$viewid);
$navigationOutput .= '<td size="10%"> </td><td align="right"><a href="index.php?module=Webmails&action=index&'.$defaultParams.'">Check for new e-Mails</a></td>';
More information about the vtigercrm-commits
mailing list