diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-02-17 21:40:57 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-02-17 22:10:02 +0100 |
commit | 6bbd67c3c693ab3cc440be7342b3cc8b88806a18 (patch) | |
tree | 45097f1a92f2da7c5be36d0a1be44fad36782fc2 | |
parent | 539fd7240c463d71ea885ca1c2a1eb292a7cceac (diff) | |
download | nextcloud-server-6bbd67c3c693ab3cc440be7342b3cc8b88806a18.tar.gz nextcloud-server-6bbd67c3c693ab3cc440be7342b3cc8b88806a18.zip |
Calendar: only update default view when it really changed
-rw-r--r-- | apps/calendar/js/calendar.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index 6f1f52eafa1..517d2ce128b 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -689,7 +689,10 @@ $(document).ready(function(){ allDayText: allDayText, viewDisplay: function(view) { $('#datecontrol_date').html(view.title); - $.get(OC.filePath('calendar', 'ajax', 'changeview.php') + "?v="+view.name); + if (view.name != defaultView) { + $.get(OC.filePath('calendar', 'ajax', 'changeview.php') + "?v="+view.name); + defaultView = view.name; + } Calendar.UI.setViewActive(view.name); if (view.name == 'agendaWeek') { $('#calendar_holder').fullCalendar('option', 'aspectRatio', 0.1); |