From ae0bd709a1f03a74b10c7485b655a63b20ea062c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 30 Sep 2009 12:17:55 -0600 Subject: [PATCH] stripe functions have moved inside of Horde namespace --- imp/js/search.js | 8 ++++---- kronolith/js/views.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/imp/js/search.js b/imp/js/search.js index 7c0abf50f..147c685d9 100644 --- a/imp/js/search.js +++ b/imp/js/search.js @@ -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) diff --git a/kronolith/js/views.js b/kronolith/js/views.js index ef2e39142..d55b3d3fb 100644 --- a/kronolith/js/views.js +++ b/kronolith/js/views.js @@ -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(); -- 2.11.0