stripe functions have moved inside of Horde namespace
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 30 Sep 2009 18:17:55 +0000 (12:17 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 30 Sep 2009 18:17:55 +0000 (12:17 -0600)
imp/js/search.js
kronolith/js/views.js

index 7c0abf5..147c685 100644 (file)
@@ -29,7 +29,8 @@ var ImpSearch = {
     updateFolderList: function(folders)
     {
         var fragment = document.createDocumentFragment(),
-            node = $($('folder_row').cloneNode(true)).writeAttribute('id', false).show();
+            node = $($('folder_row').cloneNode(true)).writeAttribute('id', false).show(),
+            div = $('search_folders_hdr').next('DIV');
 
         folders.each(function(f) {
             var n = $(node.cloneNode(true));
@@ -37,9 +38,8 @@ var ImpSearch = {
             fragment.appendChild(n);
         });
 
-        $('search_folders_hdr').next('DIV').update('').appendChild(fragment);
-
-        stripeAllElements();
+        div.update('').appendChild(fragment);
+        Horde.stripeElement(div);
     },
 
     updateRecentSearches: function(searches)
index ef2e391..d55b3d3 100644 (file)
@@ -69,8 +69,8 @@ function ShowView(view, date, cache)
 
 function _ShowView()
 {
-    if (Object.isFunction(stripeAllElements)) {
-        stripeAllElements();
+    if (Horde && Horde.stripeAllElements) {
+        Horde.stripeAllElements();
     }
     if (typeof Horde_ToolTips != 'undefined') {
         Horde_ToolTips.out();