clearwing

changeset 145:f4756afef03a 1.2.3-genius

On database selection, fetch new catalogs for autocomplete
author Stelios <stv@roe.ac.uk>
date Fri Mar 11 12:13:31 2016 +0000 (2016-03-11)
parents 67dfb934b852
children ad85c23671a0
files src/static/static_vo_tool/js/freeformJS.js
line diff
     1.1 --- a/src/static/static_vo_tool/js/freeformJS.js	Thu Mar 10 17:11:37 2016 +0000
     1.2 +++ b/src/static/static_vo_tool/js/freeformJS.js	Fri Mar 11 12:13:31 2016 +0000
     1.3 @@ -1490,8 +1490,15 @@
     1.4                jQuery('#content_dbaccess_SQL_form #load').hide();
     1.5                jQuery('#content_dbaccess_SQL_form #loading_options').hide();
     1.6                jQuery('#content_dbaccess_SQL_form .form').find("input[type='submit']").removeAttr('disabled');
     1.7 +              new_catalogues=[];
     1.8  
     1.9 -              //autocomplete.refresh();
    1.10 +	      for (var i in db_list) {
    1.11 +
    1.12 +		  new_catalogues.push(db_list[i].alias);
    1.13 +	      }
    1.14 +
    1.15 +              autocomplete.load_catalogue_tables(new_catalogues);
    1.16 +
    1.17  
    1.18              } else {
    1.19