From c949174a2e8c324e3e463a9d10e9e6dc07b0ba9e Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Wed, 22 Jun 2011 21:05:17 +0200 Subject: Fix and refactor ajax.js * Move file to qsearch.js * Rename object to dw_qsearch * Remove unnecessary usage of Delay * Use $ prefix for jQuery objects * Fix result list hiding on click * Fix namespace shorting --- lib/scripts/compatibility.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'lib/scripts/compatibility.js') diff --git a/lib/scripts/compatibility.js b/lib/scripts/compatibility.js index 559cc359a..54eb07632 100644 --- a/lib/scripts/compatibility.js +++ b/lib/scripts/compatibility.js @@ -1,16 +1,14 @@ /*jslint sloppy: true */ -/*global dw_index, DEPRECATED */ +/*global dw_index, dw_qsearch, DEPRECATED_WRAP */ var index = { throbber_delay: dw_index.throbber_delay, + toggle: DEPRECATED_WRAP(dw_index.toggle, dw_index), + treeattach: DEPRECATED_WRAP(dw_index.treeattach, dw_index) +}; - toggle: function () { - DEPRECATED(); - dw_index.toggle.apply(dw_index, arguments); - }, - - treeattach: function () { - DEPRECATED(); - dw_index.treeattach.apply(dw_index, arguments); - } +var ajax_quicksearch = { + init: DEPRECATED_WRAP(dw_qsearch.init, dw_qsearch), + clear_results: DEPRECATED_WRAP(dw_qsearch.clear_results, dw_qsearch), + onCompletion: DEPRECATED_WRAP(dw_qsearch.onCompletion, dw_qsearch) }; -- cgit v1.2.3