From: Anthony Garcia Date: Wed, 16 Oct 2013 16:34:58 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.onelab.eu/git/myslice X-Git-Tag: 0.2-6~17 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f3b60376826a28db2d4d7e6fdf41276f57b951ed;hp=35cb296cb7d4d71d9ef7934dd682a18086afd9da;p=unfold.git Merge branch 'master' of ssh://git.onelab.eu/git/myslice --- diff --git a/plugins/query_editor/static/js/query_editor.js b/plugins/query_editor/static/js/query_editor.js index 7338b69b..17b9bf77 100644 --- a/plugins/query_editor/static/js/query_editor.js +++ b/plugins/query_editor/static/js/query_editor.js @@ -92,6 +92,7 @@ // { 'sWidth': '8px', 'aTargets': [ 4 ] } // XXX NB OF COLS // ] }); + this.table = metaTable; // Actions on the newly added fields this.elmt('table tbody td span').on('click', function() { @@ -279,7 +280,10 @@ jQuery.each(availableTags, function(key, value){ value.sort(); - jQuery("#"+domid+"__field__"+key).autocomplete({ + // using dataTables's $ to search also in nodes that are not currently displayed + var element = self.table.$("#"+domid+"__field__"+key); + + element.autocomplete({ source: value, selectFirst: true, minLength: 0, // allows to browse items with no value typed in