From 542aebacb73d9fe571048d01d9ffc12d4bca1643 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Wed, 6 Jan 2010 12:17:28 +0100 Subject: Add callback to Popups, focus subscribe URL input. --- functions.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index 1e167c94f..a5d803c9f 100644 --- a/functions.js +++ b/functions.js @@ -1313,7 +1313,7 @@ function closeInfoBox(cleanup) { } -function displayDlg(id, param) { +function displayDlg(id, param, callback) { notify_progress("Loading, please wait...", true); @@ -1326,6 +1326,7 @@ function displayDlg(id, param) { parameters: query, onComplete: function (transport) { infobox_callback2(transport); + if (callback) callback(transport); } }); return false; @@ -1366,14 +1367,6 @@ function infobox_callback2(transport) { } - /* FIXME this needs to be moved out somewhere */ - - if ($("tags_choices")) { - new Ajax.Autocompleter('tags_str', 'tags_choices', - "backend.php?op=rpc&subop=completeTags", - { tokens: ',', paramName: "search" }); - } - disableHotkeys(); notify(""); -- cgit v1.2.3-54-g00ecf