- Fix listview filter changes confusingly when searching

- Fix listview does not update for new events
This commit is contained in:
nathangray 2016-08-02 09:29:45 -06:00
parent 238e67ed92
commit c2919ace3c
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -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':