Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-18 19:13:26 +0400
committerBart Visscher <bartv@thisnet.nl>2011-09-18 19:13:48 +0400
commitd5656716f69caa6a1eb98706994ffcb9a08553a7 (patch)
treed75c1092cc438ac3964e4ec7ab615f603e7b875f /apps/calendar
parent0660133d2edc915a6b7c8ce9a05fe8247b5dd4ad (diff)
Fix calendar active checkbox
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/js/calendar.js2
-rw-r--r--apps/calendar/templates/part.editcalendar.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js
index 77a75c14b2e..5864977eb38 100644
--- a/apps/calendar/js/calendar.js
+++ b/apps/calendar/js/calendar.js
@@ -464,7 +464,7 @@ Calendar={
},
submit:function(button, calendarid){
var displayname = $("#displayname_"+calendarid).val();
- var active = $("#active_"+calendarid+":checked").length;
+ var active = $("#edit_active_"+calendarid+":checked").length;
var description = $("#description_"+calendarid).val();
var calendarcolor = $("#calendarcolor_"+calendarid).val();
diff --git a/apps/calendar/templates/part.editcalendar.php b/apps/calendar/templates/part.editcalendar.php
index a1a36505ee9..af555149120 100644
--- a/apps/calendar/templates/part.editcalendar.php
+++ b/apps/calendar/templates/part.editcalendar.php
@@ -25,8 +25,8 @@
<tr>
<td></td>
<td>
- <input id="active_<?php echo $_['calendar']['id'] ?>" type="checkbox"<?php echo $_['calendar']['active'] ? ' checked="checked"' : '' ?>>
- <label for="active_<?php echo $_['calendar']['id'] ?>">
+ <input id="edit_active_<?php echo $_['calendar']['id'] ?>" type="checkbox"<?php echo $_['calendar']['active'] ? ' checked="checked"' : '' ?>>
+ <label for="edit_active_<?php echo $_['calendar']['id'] ?>">
<?php echo $l->t('Active') ?>
</label>
</td>