remove some old ?op syntax notation calls

This commit is contained in:
Andrew Dolgov 2013-04-02 14:29:11 +04:00
parent 76f2113b35
commit 8f2ad8e134
4 changed files with 12 additions and 12 deletions

View File

@ -122,7 +122,7 @@ function init() {
function fetchProfiles() { function fetchProfiles() {
try { try {
var query = "?op=getProfiles&login=" + param_escape(document.forms["loginForm"].login.value); var query = "op=getProfiles&login=" + param_escape(document.forms["loginForm"].login.value);
if (query) { if (query) {
new Ajax.Request("public.php", { new Ajax.Request("public.php", {

View File

@ -29,7 +29,7 @@ function catchup_feed(feed_id, callback) {
if (feed_id < 0) is_cat = "true"; // KLUDGE if (feed_id < 0) is_cat = "true"; // KLUDGE
var query = "?op=rpc&method=catchupFeed&feed_id=" + var query = "op=rpc&method=catchupFeed&feed_id=" +
feed_id + "&is_cat=" + is_cat; feed_id + "&is_cat=" + is_cat;
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
@ -71,7 +71,7 @@ function catchup_visible_articles(callback) {
if (confirm(ngettext("Mark %d displayed article as read?", "Mark %d displayed articles as read?", ids.length).replace("%d", ids.length))) { if (confirm(ngettext("Mark %d displayed article as read?", "Mark %d displayed articles as read?", ids.length).replace("%d", ids.length))) {
var query = "?op=rpc&method=catchupSelected" + var query = "op=rpc&method=catchupSelected" +
"&cmode=0&ids=" + param_escape(ids); "&cmode=0&ids=" + param_escape(ids);
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
@ -91,7 +91,7 @@ function catchup_visible_articles(callback) {
function catchup_article(article_id, callback) { function catchup_article(article_id, callback) {
try { try {
var query = "?op=rpc&method=catchupSelected" + var query = "op=rpc&method=catchupSelected" +
"&cmode=0&ids=" + article_id; "&cmode=0&ids=" + article_id;
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
@ -172,7 +172,7 @@ function update(callback) {
window.clearTimeout(_update_timeout); window.clearTimeout(_update_timeout);
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: "?op=digest&method=digestinit", parameters: "op=digest&method=digestinit",
onComplete: function(transport) { onComplete: function(transport) {
fatal_error_check(transport); fatal_error_check(transport);
parse_feeds(transport); parse_feeds(transport);
@ -223,7 +223,7 @@ function view(article_id) {
}, 500); }, 500);
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: "?op=digest&method=digestgetcontents&article_id=" + parameters: "op=digest&method=digestgetcontents&article_id=" +
article_id, article_id,
onComplete: function(transport) { onComplete: function(transport) {
fatal_error_check(transport); fatal_error_check(transport);
@ -331,7 +331,7 @@ function viewfeed(feed_id, offset, replace, no_effects, no_indicator, callback)
if (!offset) $("headlines").scrollTop = 0; if (!offset) $("headlines").scrollTop = 0;
var query = "backend.php?op=digest&method=digestupdate&feed_id=" + var query = "op=digest&method=digestupdate&feed_id=" +
param_escape(feed_id) + "&offset=" + offset + param_escape(feed_id) + "&offset=" + offset +
"&seq=" + _update_seq; "&seq=" + _update_seq;
@ -669,7 +669,7 @@ function parse_headlines(transport, replace, no_effects) {
function init_second_stage() { function init_second_stage() {
try { try {
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: "backend.php?op=digest&method=digestinit&init=1", parameters: "op=digest&method=digestinit&init=1",
onComplete: function(transport) { onComplete: function(transport) {
parse_feeds(transport); parse_feeds(transport);
Element.hide("overlay"); Element.hide("overlay");
@ -705,7 +705,7 @@ function toggle_mark(img, id) {
try { try {
var query = "?op=rpc&id=" + id + "&method=mark"; var query = "op=rpc&id=" + id + "&method=mark";
if (!img) return; if (!img) return;
@ -734,7 +734,7 @@ function toggle_pub(img, id, note) {
try { try {
var query = "?op=rpc&id=" + id + "&method=publ"; var query = "op=rpc&id=" + id + "&method=publ";
if (note != undefined) { if (note != undefined) {
query = query + "&note=" + param_escape(note); query = query + "&note=" + param_escape(note);

View File

@ -17,7 +17,7 @@ function exportData() {
notify_progress("Loading, please wait..."); notify_progress("Loading, please wait...");
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: "?op=pluginhandler&plugin=import_export&method=exportrun&offset=" + exported, parameters: "op=pluginhandler&plugin=import_export&method=exportrun&offset=" + exported,
onComplete: function(transport) { onComplete: function(transport) {
try { try {
var rv = JSON.parse(transport.responseText); var rv = JSON.parse(transport.responseText);

View File

@ -16,7 +16,7 @@ function updateSelf() {
notify_progress("Loading, please wait...", true); notify_progress("Loading, please wait...", true);
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: "?op=pluginhandler&plugin=updater&method=performUpdate&step=" + step + parameters: "op=pluginhandler&plugin=updater&method=performUpdate&step=" + step +
"&params=" + param_escape(JSON.stringify(dialog.attr("update-params"))), "&params=" + param_escape(JSON.stringify(dialog.attr("update-params"))),
onComplete: function(transport) { onComplete: function(transport) {
try { try {