}
-function displayDlg(id, param) {
+function displayDlg(id, param, callback) {
notify_progress("Loading, please wait...", true);
parameters: query,
onComplete: function (transport) {
infobox_callback2(transport);
+ if (callback) callback(transport);
} });
return false;
}
- /* 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("");
print "<input size=\"40\"
onkeypress=\"return filterCR(event, subscribeToFeed)\"
- name=\"feed_url\"></td></tr>";
+ name=\"feed_url\" id=\"feed_url\"></td></tr>";
print "<br/>";
}
if (opid == "qmcAddFeed") {
- displayDlg("quickAddFeed");
+ displayDlg('quickAddFeed', '',
+ function () {$('feed_url').focus();});
return;
}
}
function editArticleTags(id, feed_id, cdm_enabled) {
- displayDlg('editArticleTags', id);
+ displayDlg('editArticleTags', id,
+ function () {
+ new Ajax.Autocompleter('tags_str', 'tags_choices',
+ "backend.php?op=rpc&subop=completeTags",
+ { tokens: ',', paramName: "search" });
+ });
}