1/*jslint sloppy: true */ 2/*global dw_index, dw_qsearch, DEPRECATED_WRAP */ 3 4var index = { 5 throbber_delay: dw_index.throbber_delay, 6 toggle: DEPRECATED_WRAP(dw_index.toggle, dw_index), 7 treeattach: DEPRECATED_WRAP(dw_index.treeattach, dw_index) 8}; 9 10var ajax_quicksearch = { 11 init: DEPRECATED_WRAP(dw_qsearch.init, dw_qsearch), 12 clear_results: DEPRECATED_WRAP(dw_qsearch.clear_results, dw_qsearch), 13 onCompletion: DEPRECATED_WRAP(dw_qsearch.onCompletion, dw_qsearch) 14}; 15 16function findPosX(object){ 17 DEPRECATED('Use jQuery.position() instead'); 18 return jQuery(object).position().left; 19} 20 21function findPosY(object){ 22 DEPRECATED('Use jQuery.position() instead'); 23 return jQuery(object).position().top; 24} 25 26function getElementsByClass(searchClass,node,tag){ 27 DEPRECATED('Use jQuery() instead'); 28 if(node == null) node = document; 29 return jQuery(node).find(tag+'.'+searchClass).toArray(); 30} 31