From 0ca7f11892119d7fa870e88584fc6e1446df974b Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 9 Mar 2010 14:21:54 -0500 Subject: [PATCH] use a different css class for toptags if the form is disabled --- kronolith/js/kronolith.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 2d974d740..2a2a37976 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -2150,7 +2150,7 @@ KronolithCore = { calendar = calendar.split('|'); var type = calendar[0]; calendar = calendar.length == 1 ? null : calendar[1]; - this.doAction('listTopTags', {tagclass: 'kronolithCalendarTag'}, this.topTagsCallback); + var form = $('kronolithCalendarForm' + type), firstTab = form.down('.tabset a.kronolithTabLink'), info; @@ -2238,6 +2238,7 @@ KronolithCore = { } if (newCalendar || info.owner) { + this.doAction('listTopTags', {tagclass: 'kronolithCalendarTag'}, this.topTagsCallback); form.down('.kronolithColorPicker').show(); if (type == 'internal') { form.down('.kronolithCalendarSubscribe').hide(); @@ -2258,6 +2259,7 @@ KronolithCore = { } } else { form.disable(); + this.doAction('listTopTags', {tagclass: 'kronolithTagDisable'}, this.topTagsCallback); form.down('.kronolithColorPicker').hide(); form.down('.kronolithCalendarDelete').hide(); form.down('.kronolithCalendarSave').hide(); -- 2.11.0