From c2919ace3cf02664f8a40122f493374c5505ed90 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 2 Aug 2016 09:29:45 -0600 Subject: [PATCH] - Fix listview filter changes confusingly when searching - Fix listview does not update for new events --- calendar/inc/class.calendar_uilist.inc.php | 1 + calendar/js/app.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index 56dc49d8e5..ae9222432c 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -273,6 +273,7 @@ class calendar_uilist extends calendar_ui if ($old_params['search'] != $params['search']) { $this->adjust_for_search($params['search'],$params); + $this->filter = $params['filter']; } } if (!$params['csv_export']) Api\Cache::setSession('calendar', 'calendar_list', $params); diff --git a/calendar/js/app.js b/calendar/js/app.js index 9b0eb7fead..f6526c07ce 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -278,6 +278,10 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend( observer: function(_msg, _app, _id, _type, _msg_type, _links) { var do_refresh = false; + if(this.state.view === 'listview') + { + app.classes.calendar.views.listview.etemplates[0].widgetContainer.getWidgetById('nm').refresh(_id,_type); + } switch(_app) { case 'infolog':