[Vtigercrm-commits] [vtiger-commits] r6338 - /vtigercrm/trunk/modules/Webmails/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue May 23 21:38:00 EDT 2006


Author: mmbrich
Date: Tue May 23 19:37:59 2006
New Revision: 6338

Log:
more show_hidden improvements

Modified:
    vtigercrm/trunk/modules/Webmails/ListView.php

Modified: vtigercrm/trunk/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/ListView.php (original)
+++ vtigercrm/trunk/modules/Webmails/ListView.php Tue May 23 19:37:59 2006
@@ -148,6 +148,12 @@
 						}
 					}
 				    break;
+				    case 'undelete_msg':
+					var node = $("row_"+id);
+					node.style.display = '';
+					var newhtml = remove(remove(node.innerHTML,'<s>'),'</s>');
+					node.innerHTML=newhtml;
+				    break;
 				    case 'clear_flag':
 					var nm = "clear_td_"+id;
                 			var el = $(nm);
@@ -168,6 +174,19 @@
                         }
                 }
         );
+}
+function remove(s, t) {
+  /*
+  **  Remove all occurrences of a token in a string
+  **    s  string to be processed
+  **    t  token to be removed
+  **  returns new string
+  */
+  i = s.indexOf(t);
+  r = "";
+  if (i == -1) return s;
+  r += s.substring(0,i) + remove(s.substring(i + t.length), t);
+  return r;
 }
 function changeMbox(box) {
 	location.href = "index.php?module=Webmails&action=index&parenttab=My%20Home%20Page&mailbox="+box;





More information about the vtigercrm-commits mailing list