Don't show delete button when creating calendars.
authorJan Schneider <jan@horde.org>
Wed, 3 Mar 2010 22:30:34 +0000 (23:30 +0100)
committerJan Schneider <jan@horde.org>
Wed, 3 Mar 2010 22:31:02 +0000 (23:31 +0100)
kronolith/js/kronolith.js

index 66f160e..f8a2c0e 100644 (file)
@@ -2239,7 +2239,7 @@ KronolithCore = {
             if (type == 'internal') {
                 form.down('.kronolithCalendarSubscribe').hide();
                 form.down('.kronolithCalendarUnsubscribe').hide();
-                if (calendar == Kronolith.conf.user) {
+                if (newCalendar || calendar == Kronolith.conf.user) {
                     form.down('.kronolithCalendarDelete').hide();
                 } else {
                     form.down('.kronolithCalendarDelete').show();