| | | Forum Newbie
       
Group: Forum Members Last Login: 6/6/2008 11:09:07 AM Posts: 2, Visits: 7 |
| | Hi - After the 3rd time accidentally clicking "Empty INBOX folder", I really want it GONE! Yes, it is completely user error, but sometimes you're just in a hurry and aren't paying attention. At any rate, there was a post on this forum regarding this: http://forums.ipswitch.com/Topic37566-10-1.aspx However, the solution is only to comment out the item with <-- and --> - this would obviously do a global comment out. I only want to remove the link from the INBOX - it has great value on the Junk or Deleted folders. So, my question - how can I remove this link programmatically? Perhaps via some sort of XSLT call? Perhaps via inline scripting? HELP!!! Perhaps something like: <% if (lnkEmptyFolder.Text.Contains("INBOX") { lnkEmptyFolder.Visible=false; } %> I tried something like this thinking that it might allow inline scripting, but it error out. Any suggestions would be greatly appreciated!!! Thanks, SeanCon |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 6/6/2008 11:09:07 AM Posts: 2, Visits: 7 |
| | IpSwitch tech support gave me the standard answer (as seen in the linked topic above), so I had to work through this myself - found a solution using a simple snippet of js: Line 82 in MsgList.aspx... change this: <td width="100%" nowrap class="outlookTitleCellwithBorder" align="right"><b><ipsILB:ImageLinkButton CssClass="NoUnderlineWhite" id="lnkEmptyFolder" ImageUrl="images/icn_trash_16.gif" ImageAlign="absmiddle" Text="" runat="server"></ipsILB:ImageLinkButton></b> </td> To This: <td width="100%" nowrap class="outlookTitleCellwithBorder" align="right"><b><ipsILB:ImageLinkButton CssClass="NoUnderlineWhite" id="lnkEmptyFolder" ImageUrl="images/icn_trash_16.gif" ImageAlign="absmiddle" Text="" runat="server"></ipsILB:ImageLinkButton></b> <script language="javascript" type="text/javascript"> if (document.getElementById('lnkEmptyFolder').title.indexOf('INBOX') > 0 ) {document.getElementById('lnkEmptyFolder').style.display='none';} </script> </td> |
| |
|
|