mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 23:11:28 +00:00
add tiny-OOP style backend RPC
This commit is contained in:
10
js/digest.js
10
js/digest.js
@@ -169,7 +169,7 @@ function update(callback) {
|
||||
window.clearTimeout(_update_timeout);
|
||||
|
||||
new Ajax.Request("backend.php", {
|
||||
parameters: "?op=rpc&method=digest-init",
|
||||
parameters: "?op=rpc&method=digestinit",
|
||||
onComplete: function(transport) {
|
||||
fatal_error_check(transport);
|
||||
parse_feeds(transport);
|
||||
@@ -220,7 +220,7 @@ function view(article_id) {
|
||||
}, 500);
|
||||
|
||||
new Ajax.Request("backend.php", {
|
||||
parameters: "?op=rpc&method=digest-get-contents&article_id=" +
|
||||
parameters: "?op=rpc&method=digestgetcontents&article_id=" +
|
||||
article_id,
|
||||
onComplete: function(transport) {
|
||||
fatal_error_check(transport);
|
||||
@@ -315,14 +315,14 @@ function viewfeed(feed_id, offset, replace, no_effects, no_indicator, callback)
|
||||
|
||||
if (!offset) $("headlines").scrollTop = 0;
|
||||
|
||||
var query = "backend.php?op=rpc&method=digest-update&feed_id=" +
|
||||
var query = "backend.php?op=rpc&method=digestupdate&feed_id=" +
|
||||
param_escape(feed_id) + "&offset=" + offset +
|
||||
"&seq=" + _update_seq;
|
||||
|
||||
console.log(query);
|
||||
|
||||
var img = false;
|
||||
|
||||
|
||||
if ($("F-" + feed_id)) {
|
||||
img = $("F-" + feed_id).getElementsByTagName("IMG")[0];
|
||||
|
||||
@@ -648,7 +648,7 @@ function parse_headlines(transport, replace, no_effects) {
|
||||
function init_second_stage() {
|
||||
try {
|
||||
new Ajax.Request("backend.php", {
|
||||
parameters: "backend.php?op=rpc&method=digest-init",
|
||||
parameters: "backend.php?op=rpc&method=digestinit",
|
||||
onComplete: function(transport) {
|
||||
parse_feeds(transport);
|
||||
Element.hide("overlay");
|
||||
|
||||
Reference in New Issue
Block a user