From 0b61fbe0f0f76de8b8d0b26a565df9fb15484b9b Mon Sep 17 00:00:00 2001 From: aude Date: Tue, 13 Jan 2015 22:21:41 +0100 Subject: [PATCH] Compatibility fixes with ValueView 0.10.0 minTermLength is now an option: https://github.com/wmde/ValueView/commit/7d9fd1378e26af5953c54f51b4cc0b05e87a994e and search no longer takes / needs event: https://github.com/wmde/ValueView/commit/814ed21b416c3797fa3d3a8ba625dedafea82526 --- modules/ext.PropertySuggester.EntitySelector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ext.PropertySuggester.EntitySelector.js b/modules/ext.PropertySuggester.EntitySelector.js index 2bb3341..6957058 100644 --- a/modules/ext.PropertySuggester.EntitySelector.js +++ b/modules/ext.PropertySuggester.EntitySelector.js @@ -26,9 +26,9 @@ var focusHandler = function( event ) { if( self._useSuggester() && self.element.val() === '' && !self.options.menu.element.is( ":visible" ) ) { - self._minTermLength = 0; + self.options.minTermLength = 0; self._cache = {}; // is done in the entityselector on eachchange too - self.search( event ); + self.search(); } }; self.element.on( 'focus', focusHandler );