From 71d3897a79a0f6b7febd283c8dbddbb7e25a09f3 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 f6526c07ce..1ace7a7802 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3487,6 +3487,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);