clearwing

changeset 194:fdf2974a8e72 1.2.3-genius

Fix bug with clear query not working
author Stelios <stv@roe.ac.uk>
date Mon Jan 16 15:29:19 2017 +0000 (2017-01-16)
parents 77c598c52497
children 1cfd9b239725
files src/static/static_vo_tool/js/freeformJS.js
line diff
     1.1 --- a/src/static/static_vo_tool/js/freeformJS.js	Wed Jan 04 17:50:27 2017 +0000
     1.2 +++ b/src/static/static_vo_tool/js/freeformJS.js	Mon Jan 16 15:29:19 2017 +0000
     1.3 @@ -1800,8 +1800,8 @@
     1.4    });
     1.5  
     1.6    jQuery('#clear_query').on('click', function(e) {
     1.7 -    if (editor != null) {
     1.8 -      editor.setValue("");
     1.9 +    if (autocomplete.editor != null) {
    1.10 +      autocomplete.editor.setValue("");
    1.11        jQuery("#textfield").val("");
    1.12        eraseCookie('lastquery');
    1.13