Changeset 1919


Ignore:
Timestamp:
04/29/12 19:10:09 (12 years ago)
Author:
gaba
Message:
 
Location:
MDService2/branches/MDService_simple3/WebContent/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_searchclause.js

    r1918 r1919  
    213213        try{
    214214                this.initAutocomplete(false);
    215                 this.initAutocomplete(true);
     215                //this.initAutocomplete(true);
    216216        } catch (e){
    217217                notifyUser("autocomplete failed: " + e.message);
  • MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui.js

    r1918 r1919  
    8686       
    8787        //change context_selects
    88         $('select[name=x-context]').live('click', function(){
     88        $('select[name=x-context]').live('change',function(event){
     89                event.preventDefault();
    8990                //delete the autocomplete arrays, reset the index input values
    9091                //element_autocomplete.splice(0, element_autocomplete.length);
    91                 element_autocomplete_explain.splice(0, element_autocomplete_explain.length );
    92                 searchclauseset.clear();
     92                //element_autocomplete_explain.splice(0, element_autocomplete_explain.length );
     93               
     94                //searchclauseset.clear();
    9395                //load new
    9496                loadTermsAutocompleteExplain();
     97                searchclauseset.initAutocomplete(false);
    9598        });
    9699       
     
    10171020}
    10181021
    1019 
  • MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_load.js

    r1918 r1919  
    239239}
    240240
    241 function loadTermAutocompleteExplain(){
     241function loadTermsAutocompleteExplain(){
     242        element_autocomplete_explain.splice(0, element_autocomplete_explain.length );
    242243        $('#termset_autocomplete_explain').children().remove();
    243244        $('#termset_autocomplete_explain').css('display','none');
     
    260261                //searchclauseset.initAutocomplete(true);
    261262                //columns_widget.initAutocomplete(element_autocomplete_explain, true);
     263                searchclauseset.initAutocomplete(false);
    262264        });
    263265
    264266};
     267
    265268
    266269function loadTermsAutocomplete(){
     
    292295                });
    293296                // add autocomplete 's
    294                 searchclauseset.initAutocomplete(false);
     297                //searchclauseset.initAutocomplete(false);
    295298                //columns_widget.initAutocomplete(element_autocomplete);
    296299                //load explain autocomplete array
    297                 loadTermAutocompleteExplain();
     300                loadTermsAutocompleteExplain();
    298301        });
    299302       
Note: See TracChangeset for help on using the changeset viewer.