From: Jan Schneider Date: Wed, 25 Mar 2009 00:08:03 +0000 (+0100) Subject: Tweak. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d937a4b77cae92109fe8fcad4e5eab6bf96b8bf1;p=horde.git Tweak. --- diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index 3ad051f9d..51729a5de 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -909,8 +909,8 @@ KronolithCore = { return; } - if (elt.hasClassName('eventTopTag')) { - etags = $F('kronolithEventTags'); + if (elt.hasClassName('kronolithEventTag')) { + var etags = $F('kronolithEventTags'); $('kronolithEventTags').value = (etags ? etags + ', ' : '') + elt.getText(); return; } @@ -963,12 +963,11 @@ KronolithCore = { RedBox.onDisplay = null; }; + this.doAction('ListTopTags', {}, this._topTags); if (id) { RedBox.loading(); - this.doAction('ListTopTags', {}, this._topTags.bind(this)); this.doAction('GetEvent', { 'cal': calendar, 'id': id }, this._editEvent.bind(this)); } else { - this.doAction('ListTopTags', {}, this._topTags.bind(this)); var d = new Date(); $('kronolithEventForm').enable(); $('kronolithEventForm').reset(); @@ -987,12 +986,12 @@ KronolithCore = { _topTags: function(r) { + $('kronolithEventTopTags').update(); if (!r.response.tags) { return; } - $('eventTopTags').update(); r.response.tags.each(function(tag) { - $('eventTopTags').insert(new Element('span', {'class': 'eventTopTag'}).update(tag)); + $('kronolithEventTopTags').insert(new Element('span', { 'class': 'kronolithEventTag' }).update(tag)); }); return; }, diff --git a/kronolith/templates/index/index.inc b/kronolith/templates/index/index.inc index b7417c078..dd78e4fa9 100644 --- a/kronolith/templates/index/index.inc +++ b/kronolith/templates/index/index.inc @@ -177,7 +177,7 @@ -
+
" class="button ok" /> diff --git a/kronolith/themes/screen.css b/kronolith/themes/screen.css index a5fdcfb2d..8dc8e5b3d 100644 --- a/kronolith/themes/screen.css +++ b/kronolith/themes/screen.css @@ -730,12 +730,12 @@ div#kronolithEventActions #kronolithEventAdvancedLink a { color: inherit; } -div.kronolithTags { +div#kronolithEventTopTags { max-height: 75px; overflow: auto; line-height: 20px; } -div.kronolithTags span { +div#kronolithEventTopTags span { padding: 2px 4px; background-color: #fff; border: 1px #c0c0c0 solid; @@ -743,7 +743,7 @@ div.kronolithTags span { -webkit-border-radius: 4px; font-size: 90%; } -div.kronolithTags span:hover { +div#kronolithEventTopTags span:hover { background-color: #ffc; cursor: pointer; }