]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove some old ?op syntax notation calls
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 10:29:11 +0000 (14:29 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 10:29:11 +0000 (14:29 +0400)
include/login_form.php
plugins/digest/digest.js
plugins/import_export/import_export.js
plugins/updater/updater.js

index 4fc08261abb58d068afac7c31d8e3e915c76316f..7ac7111c895f20fba1efdb8c4ffcea80833a850e 100644 (file)
@@ -122,7 +122,7 @@ function init() {
 
 function fetchProfiles() {
        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) {
                        new Ajax.Request("public.php",  {
index 6d90a9c8a4b21093f57e2559607ea870ad22d44a..5815e60e538286750af9d1016c5a083bd8475b0e 100644 (file)
@@ -29,7 +29,7 @@ function catchup_feed(feed_id, callback) {
 
                        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;
 
                        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))) {
 
-                       var query = "?op=rpc&method=catchupSelected" +
+                       var query = "op=rpc&method=catchupSelected" +
                                "&cmode=0&ids=" + param_escape(ids);
 
                        new Ajax.Request("backend.php", {
@@ -91,7 +91,7 @@ function catchup_visible_articles(callback) {
 
 function catchup_article(article_id, callback) {
        try {
-               var query = "?op=rpc&method=catchupSelected" +
+               var query = "op=rpc&method=catchupSelected" +
                        "&cmode=0&ids=" + article_id;
 
                new Ajax.Request("backend.php", {
@@ -172,7 +172,7 @@ function update(callback) {
                window.clearTimeout(_update_timeout);
 
                new Ajax.Request("backend.php", {
-                       parameters: "?op=digest&method=digestinit",
+                       parameters: "op=digest&method=digestinit",
                        onComplete: function(transport) {
                                fatal_error_check(transport);
                                parse_feeds(transport);
@@ -223,7 +223,7 @@ function view(article_id) {
                        }, 500);
 
                new Ajax.Request("backend.php", {
-                       parameters: "?op=digest&method=digestgetcontents&article_id=" +
+                       parameters: "op=digest&method=digestgetcontents&article_id=" +
                                article_id,
                        onComplete: function(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;
 
-               var query = "backend.php?op=digest&method=digestupdate&feed_id=" +
+               var query = "op=digest&method=digestupdate&feed_id=" +
                                param_escape(feed_id) + "&offset=" + offset +
                                "&seq=" + _update_seq;
 
@@ -669,7 +669,7 @@ function parse_headlines(transport, replace, no_effects) {
 function init_second_stage() {
        try {
                new Ajax.Request("backend.php", {
-                       parameters: "backend.php?op=digest&method=digestinit&init=1",
+                       parameters: "op=digest&method=digestinit&init=1",
                        onComplete: function(transport) {
                                parse_feeds(transport);
                                Element.hide("overlay");
@@ -705,7 +705,7 @@ function toggle_mark(img, id) {
 
        try {
 
-               var query = "?op=rpc&id=" + id + "&method=mark";
+               var query = "op=rpc&id=" + id + "&method=mark";
 
                if (!img) return;
 
@@ -734,7 +734,7 @@ function toggle_pub(img, id, note) {
 
        try {
 
-               var query = "?op=rpc&id=" + id + "&method=publ";
+               var query = "op=rpc&id=" + id + "&method=publ";
 
                if (note != undefined) {
                        query = query + "&note=" + param_escape(note);
index 86b0458be2b476d9858126c88af40bab9c517664..780f6bfc7b672d7f7f81d53799016e6217d93ca4 100644 (file)
@@ -17,7 +17,7 @@ function exportData() {
                                notify_progress("Loading, please wait...");
 
                                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) {
                                                try {
                                                        var rv = JSON.parse(transport.responseText);
index 17452d7342cc833c3bd18d1f9d85e8ceca0f2c58..40fcc871b15df7df5a176b822b6ea4d4a4a61c6f 100644 (file)
@@ -16,7 +16,7 @@ function updateSelf() {
 
                                notify_progress("Loading, please wait...", true);
                                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"))),
                                onComplete: function(transport) {
                                        try {