From 10b954a9d16e5d5e8f1321692bff7fbe3d257a49 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 3 Aug 2016 10:53:37 -0600 Subject: [PATCH] If calendar listview search is cleared, make sure it doesn't come back --- calendar/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index 58ef92f7ee..59c32e3165 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3489,6 +3489,10 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend( { this.state.keywords = nm.activeFilters.search; } + // Bind to keep search up to date + jQuery(nm.getWidgetById('search').getDOMNode()).on('change', function() { + app.calendar.state.search = jQuery('input',this).val(); + }); nm.set_startdate = jQuery.proxy(function(date) { this.state.first = this.date.toString(new Date(date)); },this);