Changeset 1919 for MDService2
- Timestamp:
- 04/29/12 19:10:09 (13 years ago)
- 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 213 213 try{ 214 214 this.initAutocomplete(false); 215 this.initAutocomplete(true);215 //this.initAutocomplete(true); 216 216 } catch (e){ 217 217 notifyUser("autocomplete failed: " + e.message); -
MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui.js
r1918 r1919 86 86 87 87 //change context_selects 88 $('select[name=x-context]').live('click', function(){ 88 $('select[name=x-context]').live('change',function(event){ 89 event.preventDefault(); 89 90 //delete the autocomplete arrays, reset the index input values 90 91 //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(); 93 95 //load new 94 96 loadTermsAutocompleteExplain(); 97 searchclauseset.initAutocomplete(false); 95 98 }); 96 99 … … 1017 1020 } 1018 1021 1019 -
MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_load.js
r1918 r1919 239 239 } 240 240 241 function loadTermAutocompleteExplain(){ 241 function loadTermsAutocompleteExplain(){ 242 element_autocomplete_explain.splice(0, element_autocomplete_explain.length ); 242 243 $('#termset_autocomplete_explain').children().remove(); 243 244 $('#termset_autocomplete_explain').css('display','none'); … … 260 261 //searchclauseset.initAutocomplete(true); 261 262 //columns_widget.initAutocomplete(element_autocomplete_explain, true); 263 searchclauseset.initAutocomplete(false); 262 264 }); 263 265 264 266 }; 267 265 268 266 269 function loadTermsAutocomplete(){ … … 292 295 }); 293 296 // add autocomplete 's 294 searchclauseset.initAutocomplete(false);297 //searchclauseset.initAutocomplete(false); 295 298 //columns_widget.initAutocomplete(element_autocomplete); 296 299 //load explain autocomplete array 297 loadTerm AutocompleteExplain();300 loadTermsAutocompleteExplain(); 298 301 }); 299 302
Note: See TracChangeset
for help on using the changeset viewer.