summaryrefslogtreecommitdiffstats
path: root/apps/calendar/js
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-13 16:40:10 -0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-13 16:40:10 -0400
commitafcb0aee40230c68dd99f5ea2501b7ba7e444560 (patch)
tree5ccd10e78128c70e71a36ca9080a652a7bd833d5 /apps/calendar/js
parent02dc34320978bfbcb30dea34b87808837586bb65 (diff)
parentb9f9228a22944184803a8835282862e468812c1d (diff)
downloadnextcloud-server-afcb0aee40230c68dd99f5ea2501b7ba7e444560.tar.gz
nextcloud-server-afcb0aee40230c68dd99f5ea2501b7ba7e444560.zip
fix merge conflicts
Diffstat (limited to 'apps/calendar/js')
-rw-r--r--apps/calendar/js/calendar.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js
index 84829695eee..a267f15f781 100644
--- a/apps/calendar/js/calendar.js
+++ b/apps/calendar/js/calendar.js
@@ -32,13 +32,7 @@ Calendar={
$('#totime').timepicker({
showPeriodLabels: false
});
- $('#category').multiselect({
- header: false,
- noneSelectedText: $('#category').attr('title'),
- selectedList: 2,
- minWidth:'auto',
- classes: 'category',
- });
+ $('#category').multiple_autocomplete({source: categories});
Calendar.UI.repeat('init');
$('#end').change(function(){
Calendar.UI.repeat('end');
@@ -371,6 +365,11 @@ Calendar={
}
$('#'+id).addClass('active');
},
+ categoriesChanged:function(newcategories){
+ categories = $.map(newcategories, function(v) {return v;});
+ console.log('Calendar categories changed to: ' + categories);
+ $('#category').multiple_autocomplete('option', 'source', categories);
+ },
Calendar:{
overview:function(){
if($('#choosecalendar_dialog').dialog('isOpen') == true){
@@ -833,6 +832,8 @@ $(document).ready(function(){
loading: Calendar.UI.loading,
eventSources: eventSources
});
+ OCCategories.changed = Calendar.UI.categoriesChanged;
+ OCCategories.app = 'calendar';
$('#oneweekview_radio').click(function(){
$('#calendar_holder').fullCalendar('changeView', 'agendaWeek');
});