main: move to async infobox calls
This commit is contained in:
parent
d395a94275
commit
2a8504cd39
23
tt-rss.js
23
tt-rss.js
|
@ -645,6 +645,7 @@ function userSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function editFeedDlg(feed) {
|
function editFeedDlg(feed) {
|
||||||
|
try {
|
||||||
|
|
||||||
disableHotkeys();
|
disableHotkeys();
|
||||||
|
|
||||||
|
@ -658,21 +659,21 @@ function editFeedDlg(feed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xmlhttp_ready(xmlhttp)) {
|
var query = "";
|
||||||
|
|
||||||
if (feed > 0) {
|
if (feed > 0) {
|
||||||
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editfeed&id=" +
|
query = "backend.php?op=pref-feeds&subop=editfeed&id=" + param_escape(feed);
|
||||||
param_escape(feed), true);
|
|
||||||
xmlhttp.onreadystatechange=infobox_callback;
|
|
||||||
xmlhttp.send(null);
|
|
||||||
} else {
|
} else {
|
||||||
xmlhttp.open("GET", "backend.php?op=pref-labels&subop=edit&id=" +
|
query = "backend.php?op=pref-labels&subop=edit&id=" + param_escape(-feed-11);
|
||||||
param_escape(-feed-11), true);
|
|
||||||
xmlhttp.onreadystatechange=infobox_callback;
|
|
||||||
xmlhttp.send(null);
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
printLockingError();
|
new Ajax.Request(query, {
|
||||||
|
onComplete: function(transport) {
|
||||||
|
infobox_callback2(transport);
|
||||||
|
} });
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("editFeedDlg", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue