1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 01:05:56 +00:00

Add callback to Popups, focus subscribe URL input.

This commit is contained in:
Adrian Lang
2010-01-06 12:17:28 +01:00
committed by Andrew Dolgov
parent ae096313ed
commit 542aebacb7
4 changed files with 11 additions and 12 deletions

View File

@@ -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("");