From: Michael J. Rubinsky Date: Tue, 5 May 2009 18:34:23 +0000 (-0400) Subject: only update the DOM once X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3d0951f4931f6c0d119f46c82f1524ea1a4aae84;p=horde.git only update the DOM once --- diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index 890ea7267..4f04e78c4 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -1444,13 +1444,15 @@ KronolithCore = { _topTags: function(r) { - $('kronolithEventTopTags').update(); if (!r.response.tags) { + $('kronolithEventTopTags').update(); return; } + t = new Element('div', {}); r.response.tags.each(function(tag) { - $('kronolithEventTopTags').insert(new Element('span', { 'class': 'kronolithEventTag' }).update(tag)); + t.insert(new Element('span', { 'class': 'kronolithEventTag' }).update(tag)); }); + $('kronolithEventTopTags').update(t); return; },