summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-06-14 07:02:50 +0100
committerAndrew Dolgov <[email protected]>2007-06-14 07:02:50 +0100
commitfee51fc66bfa95a85e286d53a298327f9cd7c218 (patch)
tree3b8c9b43e323fe133ace2b56d4b8b633d2e3d5c4
parentab81de29a0895a53fbfd1e8b60e50a7e31a33995 (diff)
drop history
-rw-r--r--feedlist.js5
-rw-r--r--tt-rss.js82
-rw-r--r--viewfeed.js4
3 files changed, 0 insertions, 91 deletions
diff --git a/feedlist.js b/feedlist.js
index 9bfd9a235..4635d9a64 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -48,11 +48,6 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
closeInfoBox();
-/* if (!skip_history) {
- history_push('FEED:' + feed + ':' + subop + ':' + is_cat +
- ':' + subop_param);
- } */
-
var toolbar_query = Form.serialize("main_toolbar_form");
var toolbar_form = document.forms["main_toolbar_form"];
diff --git a/tt-rss.js b/tt-rss.js
index 54e41d912..96418db9e 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -21,8 +21,6 @@ var xmlhttp_ctr = Ajax.getTransport();
var init_params = new Object();
-//var op_history = new Array();
-
function tagsAreDisplayed() {
return display_tags;
}
@@ -706,84 +704,4 @@ function feedEditSave() {
exception_error("feedEditSave (main)", e);
}
}
-/*
-function localHotkeyHandler(e) {
-
- var keycode;
-
- if (window.event) {
- keycode = window.event.keyCode;
- } else if (e) {
- keycode = e.which;
- }
-
- var shift_key = false;
-
- try {
- shift_key = e.shiftKey;
- } catch (e) { }
-
- if (keycode == 66 && shift_key) { // shift-B
-
- var op = history_pop();
-
- if (op) {
- var op_s = op.split(":");
-
- var i;
- for (i = 0; i < op_s.length; i++) {
- if (op_s[i] == 'undefined') {
- op_s[i] = undefined;
- }
-
- if (op_s[i] == 'false') {
- op_s[i] = false;
- }
-
- if (op_s[i] == 'true') {
- op_s[i] = true;
- }
-
- }
-
- debug("history split: " + op_s);
-
- if (op_s[0] == "ARTICLE") {
- debug("history: reverting to article " + op_s[1] + "/" + op_s[2]);
- view(op_s[1], op_s[2], true);
- }
-
- if (op_s[0] == "FEED") {
- viewfeed(op_s[1], op_s[2], op_s[3], op_s[4], true);
- }
-
- } else {
- notify_error("No operation to undo");
- }
-
- return false;
-
- }
-
- debug("LKP=" + keycode);
-}
-
-function history_push(op) {
- debug("history_push: " + op);
- op_history.push(op);
-
- while (op_history.length > 30) {
- op_history.shift();
- }
-}
-
-function history_pop() {
- var op = op_history.pop();
- debug("history_pop: " + op);
- return op;
-}
-function history_clear() {
- debug("history_clear");
- op_history.clear();
-} */
diff --git a/viewfeed.js b/viewfeed.js
index 9ea320cf9..973c436e5 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -191,10 +191,6 @@ function view(id, feed_id, skip_history) {
var cached_article = cache_find(id);
debug("cache check result: " + (cached_article != false));
-
-/* if (!skip_history) {
- history_push("ARTICLE:" + id + ":" + feed_id);
- } */
enableHotkeys();