From: Michael M Slusarz Date: Wed, 30 Sep 2009 18:17:55 +0000 (-0600) Subject: stripe functions have moved inside of Horde namespace X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ae0bd709a1f03a74b10c7485b655a63b20ea062c;p=horde.git stripe functions have moved inside of Horde namespace --- 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();