misc typo fixes
This commit is contained in:
parent
e6f1a1b747
commit
e331188f76
|
@ -67,14 +67,14 @@ dojo.declare("fox.FeedStoreModel", dijit.tree.ForestStoreModel, {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i] == treeItem) {
|
if (items[i] == treeItem) {
|
||||||
|
|
||||||
for (j = i+1; j < items.length; j++) {
|
for (var j = i+1; j < items.length; j++) {
|
||||||
var unread = this.store.getValue(items[j], 'unread');
|
var unread = this.store.getValue(items[j], 'unread');
|
||||||
var id = this.store.getValue(items[j], 'id');
|
var id = this.store.getValue(items[j], 'id');
|
||||||
|
|
||||||
if (unread > 0 && (is_cat || id.match("FEED:"))) return items[j];
|
if (unread > 0 && (is_cat || id.match("FEED:"))) return items[j];
|
||||||
}
|
}
|
||||||
|
|
||||||
for (j = 0; j < i; j++) {
|
for (var j = 0; j < i; j++) {
|
||||||
var unread = this.store.getValue(items[j], 'unread');
|
var unread = this.store.getValue(items[j], 'unread');
|
||||||
var id = this.store.getValue(items[j], 'id');
|
var id = this.store.getValue(items[j], 'id');
|
||||||
|
|
||||||
|
@ -365,7 +365,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i] == treeItem) {
|
if (items[i] == treeItem) {
|
||||||
|
|
||||||
for (j = i+1; j < items.length; j++) {
|
for (var j = i+1; j < items.length; j++) {
|
||||||
var id = String(items[j].id);
|
var id = String(items[j].id);
|
||||||
var box = this._itemNodesMap[id];
|
var box = this._itemNodesMap[id];
|
||||||
|
|
||||||
|
@ -403,7 +403,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i] == treeItem) {
|
if (items[i] == treeItem) {
|
||||||
|
|
||||||
for (j = i-1; j > 0; j--) {
|
for (var j = i-1; j > 0; j--) {
|
||||||
var id = String(items[j].id);
|
var id = String(items[j].id);
|
||||||
var box = this._itemNodesMap[id];
|
var box = this._itemNodesMap[id];
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ dojo.declare("fox.PrefFeedTree", lib.CheckBoxTree, {
|
||||||
var item = dijit.getEnclosingWidget(target).item;
|
var item = dijit.getEnclosingWidget(target).item;
|
||||||
|
|
||||||
// disable copying items
|
// disable copying items
|
||||||
source.copyState = function() { return false; }
|
source.copyState = function() { return false; };
|
||||||
|
|
||||||
var source_item = false;
|
var source_item = false;
|
||||||
|
|
||||||
|
@ -62,9 +62,6 @@ dojo.declare("fox.PrefFeedTree", lib.CheckBoxTree, {
|
||||||
|
|
||||||
if (!source_item || !item) return false;
|
if (!source_item || !item) return false;
|
||||||
|
|
||||||
var id = String(item.id);
|
|
||||||
var source_id = String(source_item.id);
|
|
||||||
|
|
||||||
var id = this.tree.model.store.getValue(item, 'id');
|
var id = this.tree.model.store.getValue(item, 'id');
|
||||||
var source_id = source.tree.model.store.getValue(source_item, 'id');
|
var source_id = source.tree.model.store.getValue(source_item, 'id');
|
||||||
|
|
||||||
|
|
|
@ -321,8 +321,10 @@ function viewfeed(feed_id, offset, replace, no_effects, no_indicator, callback)
|
||||||
|
|
||||||
console.log(query);
|
console.log(query);
|
||||||
|
|
||||||
|
var img = false;
|
||||||
|
|
||||||
if ($("F-" + feed_id)) {
|
if ($("F-" + feed_id)) {
|
||||||
var img = $("F-" + feed_id).getElementsByTagName("IMG")[0];
|
img = $("F-" + feed_id).getElementsByTagName("IMG")[0];
|
||||||
|
|
||||||
if (img && !no_indicator) {
|
if (img && !no_indicator) {
|
||||||
img.setAttribute("orig_src", img.src);
|
img.setAttribute("orig_src", img.src);
|
||||||
|
@ -545,7 +547,7 @@ function parse_feeds(transport) {
|
||||||
feeds.sort( function (a,b)
|
feeds.sort( function (a,b)
|
||||||
{
|
{
|
||||||
if (b.unread != a.unread)
|
if (b.unread != a.unread)
|
||||||
return (b.unread - a.unread)
|
return (b.unread - a.unread);
|
||||||
else
|
else
|
||||||
if (a.title > b.title)
|
if (a.title > b.title)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
12
feedlist.js
12
feedlist.js
|
@ -104,8 +104,6 @@ function viewfeed(feed, subop, is_cat, offset, background, infscrol_req) {
|
||||||
dijit.byId("content-tabs").selectChild(
|
dijit.byId("content-tabs").selectChild(
|
||||||
dijit.byId("content-tabs").getChildren()[0]);
|
dijit.byId("content-tabs").getChildren()[0]);
|
||||||
|
|
||||||
var force_nocache = false;
|
|
||||||
|
|
||||||
if (!background) {
|
if (!background) {
|
||||||
if (getActiveFeedId() != feed || offset == 0) {
|
if (getActiveFeedId() != feed || offset == 0) {
|
||||||
active_post_id = 0;
|
active_post_id = 0;
|
||||||
|
@ -312,18 +310,14 @@ function displayNewContentPrompt(id) {
|
||||||
|
|
||||||
function parse_counters(elems, scheduled_call) {
|
function parse_counters(elems, scheduled_call) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
var feeds_found = 0;
|
|
||||||
|
|
||||||
for (var l = 0; l < elems.length; l++) {
|
for (var l = 0; l < elems.length; l++) {
|
||||||
|
|
||||||
var id = elems[l].id
|
var id = elems[l].id;
|
||||||
var kind = elems[l].kind;
|
var kind = elems[l].kind;
|
||||||
var ctr = parseInt(elems[l].counter)
|
var ctr = parseInt(elems[l].counter);
|
||||||
var error = elems[l].error;
|
var error = elems[l].error;
|
||||||
var has_img = elems[l].has_img;
|
var has_img = elems[l].has_img;
|
||||||
var updated = elems[l].updated;
|
var updated = elems[l].updated;
|
||||||
var title = elems[l].title;
|
|
||||||
|
|
||||||
if (id == "global-unread") {
|
if (id == "global-unread") {
|
||||||
global_unread = ctr;
|
global_unread = ctr;
|
||||||
|
@ -336,8 +330,6 @@ function parse_counters(elems, scheduled_call) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var treeItem;
|
|
||||||
|
|
||||||
// TODO: enable new content notification for categories
|
// TODO: enable new content notification for categories
|
||||||
|
|
||||||
if (!activeFeedIsCat() && id == getActiveFeedId()
|
if (!activeFeedIsCat() && id == getActiveFeedId()
|
||||||
|
|
17
functions.js
17
functions.js
|
@ -8,7 +8,7 @@ Array.prototype.remove = function(s) {
|
||||||
for (var i=0; i < this.length; i++) {
|
for (var i=0; i < this.length; i++) {
|
||||||
if (s == this[i]) this.splice(i, 1);
|
if (s == this[i]) this.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
/* create console.log if it doesn't exist */
|
/* create console.log if it doesn't exist */
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ function gotoExportOpml(filename, settings) {
|
||||||
if(x.length>1) {
|
if(x.length>1) {
|
||||||
// remove negative sign
|
// remove negative sign
|
||||||
x=Math.abs(x)+"";
|
x=Math.abs(x)+"";
|
||||||
for(j=0;j<x.length;j++) {
|
for(var j=0;j<x.length;j++) {
|
||||||
// call isNumeric recursively for each character
|
// call isNumeric recursively for each character
|
||||||
number=isNumeric(x.substring(j,j+1));
|
number=isNumeric(x.substring(j,j+1));
|
||||||
if(!number) return number;
|
if(!number) return number;
|
||||||
|
@ -368,7 +368,7 @@ function checkboxToggleElement(elem, id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function dropboxSelect(e, v) {
|
function dropboxSelect(e, v) {
|
||||||
for (i = 0; i < e.length; i++) {
|
for (var i = 0; i < e.length; i++) {
|
||||||
if (e[i].value == v) {
|
if (e[i].value == v) {
|
||||||
e.selectedIndex = i;
|
e.selectedIndex = i;
|
||||||
break;
|
break;
|
||||||
|
@ -435,11 +435,6 @@ function infobox_callback2(transport) {
|
||||||
//console.log("infobox_callback2");
|
//console.log("infobox_callback2");
|
||||||
notify('');
|
notify('');
|
||||||
|
|
||||||
var content;
|
|
||||||
var dtitle = "Dialog";
|
|
||||||
|
|
||||||
var dlg = transport.responseXML.getElementsByTagName("dlg")[0];
|
|
||||||
|
|
||||||
var title = transport.responseXML.getElementsByTagName("title")[0];
|
var title = transport.responseXML.getElementsByTagName("title")[0];
|
||||||
if (title)
|
if (title)
|
||||||
title = title.firstChild.nodeValue;
|
title = title.firstChild.nodeValue;
|
||||||
|
@ -1012,7 +1007,7 @@ function quickAddFilter() {
|
||||||
if (inPreferences()) {
|
if (inPreferences()) {
|
||||||
updateFilterList();
|
updateFilterList();
|
||||||
}
|
}
|
||||||
}})
|
}});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
|
@ -1354,7 +1349,7 @@ function getSelectedTableRowIds(id) {
|
||||||
try {
|
try {
|
||||||
var elem_rows = $(id).rows;
|
var elem_rows = $(id).rows;
|
||||||
|
|
||||||
for (i = 0; i < elem_rows.length; i++) {
|
for (var i = 0; i < elem_rows.length; i++) {
|
||||||
if (elem_rows[i].hasClassName("Selected")) {
|
if (elem_rows[i].hasClassName("Selected")) {
|
||||||
var bare_id = elem_rows[i].id.replace(/^[A-Z]*?-/, "");
|
var bare_id = elem_rows[i].id.replace(/^[A-Z]*?-/, "");
|
||||||
rows.push(bare_id);
|
rows.push(bare_id);
|
||||||
|
@ -1397,7 +1392,7 @@ function editFeed(feed, event) {
|
||||||
dialog.hide();
|
dialog.hide();
|
||||||
notify('');
|
notify('');
|
||||||
updateFeedList();
|
updateFeedList();
|
||||||
}})
|
}});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
href: query});
|
href: query});
|
||||||
|
|
|
@ -131,7 +131,7 @@ dojo.declare( "lib.CheckBoxStoreModel", dijit.tree.TreeStoreModel,
|
||||||
currState = this.checkboxState;
|
currState = this.checkboxState;
|
||||||
}
|
}
|
||||||
|
|
||||||
return currState // the current state of the checkbox (true/false or undefined)
|
return currState; // the current state of the checkbox (true/false or undefined)
|
||||||
},
|
},
|
||||||
|
|
||||||
_setCheckboxState: function(/*dojo.data.Item*/ storeItem, /*Boolean*/ newState ) {
|
_setCheckboxState: function(/*dojo.data.Item*/ storeItem, /*Boolean*/ newState ) {
|
||||||
|
@ -277,7 +277,7 @@ dojo.declare( "lib.CheckBoxStoreModel", dijit.tree.TreeStoreModel,
|
||||||
parents.push(this.root);
|
parents.push(this.root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return parents // parent(s) of a dojo.data.item (Array of dojo.data.items)
|
return parents; // parent(s) of a dojo.data.item (Array of dojo.data.items)
|
||||||
},
|
},
|
||||||
|
|
||||||
validateData: function(/*dojo.data.Item*/ storeItem, /*thisObject*/ scope ) {
|
validateData: function(/*dojo.data.Item*/ storeItem, /*thisObject*/ scope ) {
|
||||||
|
|
|
@ -4,8 +4,8 @@ Position.GetWindowSize = function(w) {
|
||||||
w = w ? w : window;
|
w = w ? w : window;
|
||||||
var width = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth);
|
var width = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth);
|
||||||
var height = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight);
|
var height = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight);
|
||||||
return [width, height]
|
return [width, height];
|
||||||
}
|
};
|
||||||
|
|
||||||
/* http://textsnippets.com/posts/show/836 */
|
/* http://textsnippets.com/posts/show/836 */
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Position.Center = function(element, parent) {
|
||||||
}
|
}
|
||||||
element.style.top = (ph/2) - (h/2) - Position.deltaY + "px";
|
element.style.top = (ph/2) - (h/2) - Position.deltaY + "px";
|
||||||
element.style.left = (pw/2) - (w/2) - Position.deltaX + "px";
|
element.style.left = (pw/2) - (w/2) - Position.deltaX + "px";
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ function do_login() {
|
||||||
<a class="button blueButton" onclick='do_login()'><?php echo __('Log in') ?></a>
|
<a class="button blueButton" onclick='do_login()'><?php echo __('Log in') ?></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form target="_self" title="Login" action="index.php" id="login" class="panel" method="POST" name="login" selected="true">
|
<form target="_self" title="Login" action="index.php" id="login" class="panel" method="post" name="login" selected="true">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
||||||
|
|
9
prefs.js
9
prefs.js
|
@ -250,7 +250,7 @@ function editFilter(id) {
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
dialog.hide();
|
dialog.hide();
|
||||||
updateFilterList();
|
updateFilterList();
|
||||||
}})
|
}});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
|
@ -701,7 +701,7 @@ function editSelectedFeeds() {
|
||||||
title: __("Edit Multiple Feeds"),
|
title: __("Edit Multiple Feeds"),
|
||||||
style: "width: 600px",
|
style: "width: 600px",
|
||||||
getChildByName: function (name) {
|
getChildByName: function (name) {
|
||||||
var rv = null
|
var rv = null;
|
||||||
this.getChildren().each(
|
this.getChildren().each(
|
||||||
function(child) {
|
function(child) {
|
||||||
if (child.name == name) {
|
if (child.name == name) {
|
||||||
|
@ -773,7 +773,7 @@ function editSelectedFeeds() {
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
dialog.hide();
|
dialog.hide();
|
||||||
updateFeedList();
|
updateFeedList();
|
||||||
}})
|
}});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
content: transport.responseText});
|
content: transport.responseText});
|
||||||
|
@ -985,7 +985,7 @@ function pref_hotkey_handler(e) {
|
||||||
try {
|
try {
|
||||||
if (e.target.nodeName == "INPUT") return;
|
if (e.target.nodeName == "INPUT") return;
|
||||||
|
|
||||||
var keycode;
|
var keycode = false;
|
||||||
var shift_key = false;
|
var shift_key = false;
|
||||||
|
|
||||||
var cmdline = $('cmdline');
|
var cmdline = $('cmdline');
|
||||||
|
@ -1724,7 +1724,6 @@ function editLabel(id, event) {
|
||||||
},
|
},
|
||||||
execute: function() {
|
execute: function() {
|
||||||
if (this.validate()) {
|
if (this.validate()) {
|
||||||
var caption = this.attr('value').id;
|
|
||||||
var caption = this.attr('value').caption;
|
var caption = this.attr('value').caption;
|
||||||
var fg_color = this.attr('value').fg_color;
|
var fg_color = this.attr('value').fg_color;
|
||||||
var bg_color = this.attr('value').bg_color;
|
var bg_color = this.attr('value').bg_color;
|
||||||
|
|
|
@ -56,11 +56,11 @@
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
<body id="ttrssPrefs" class="claro">
|
||||||
|
|
||||||
<div id="notify" class="notify"><span id="notify_body"> </span></div>
|
<div id="notify" class="notify"><span id="notify_body"> </span></div>
|
||||||
<div id="cmdline" style="display : none"></div>
|
<div id="cmdline" style="display : none"></div>
|
||||||
|
|
||||||
<body id="ttrssPrefs" class="claro">
|
|
||||||
|
|
||||||
<div id="overlay">
|
<div id="overlay">
|
||||||
<div id="overlay_inner">
|
<div id="overlay_inner">
|
||||||
<div class="insensitive"><?php echo __("Loading, please wait...") ?></div>
|
<div class="insensitive"><?php echo __("Loading, please wait...") ?></div>
|
||||||
|
|
|
@ -218,10 +218,10 @@
|
||||||
</td><td>
|
</td><td>
|
||||||
<input type="submit" value="<?php echo __('Check availability') ?>" onclick='return checkUsername()'>
|
<input type="submit" value="<?php echo __('Check availability') ?>" onclick='return checkUsername()'>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<td><?php echo __('Email:') ?></td><td>
|
<tr><td><?php echo __('Email:') ?></td><td>
|
||||||
<input name="email">
|
<input name="email">
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<td><?php echo __('How much is two plus two:') ?></td><td>
|
<tr><td><?php echo __('How much is two plus two:') ?></td><td>
|
||||||
<input name="turing_test"></td></tr>
|
<input name="turing_test"></td></tr>
|
||||||
<tr><td colspan="2" align="right">
|
<tr><td colspan="2" align="right">
|
||||||
<input type="submit" name="sub_btn" value="<?php echo __('Submit registration') ?>"
|
<input type="submit" name="sub_btn" value="<?php echo __('Submit registration') ?>"
|
||||||
|
|
14
tt-rss.js
14
tt-rss.js
|
@ -490,8 +490,6 @@ function parse_runtime_info(data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var error_flag;
|
|
||||||
|
|
||||||
if (k == "daemon_is_running" && v != 1) {
|
if (k == "daemon_is_running" && v != 1) {
|
||||||
notify_error("<span onclick=\"javascript:explainError(1)\">Update daemon is not running.</span>", true);
|
notify_error("<span onclick=\"javascript:explainError(1)\">Update daemon is not running.</span>", true);
|
||||||
return;
|
return;
|
||||||
|
@ -521,7 +519,7 @@ function catchupCurrentFeed() {
|
||||||
var str = __("Mark all articles in %s as read?").replace("%s", fn);
|
var str = __("Mark all articles in %s as read?").replace("%s", fn);
|
||||||
|
|
||||||
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
|
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
|
||||||
return viewCurrentFeed('MarkAllRead')
|
return viewCurrentFeed('MarkAllRead');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -534,7 +532,7 @@ function catchupFeedInGroup(id) {
|
||||||
var str = __("Mark all articles in %s as read?").replace("%s", title);
|
var str = __("Mark all articles in %s as read?").replace("%s", title);
|
||||||
|
|
||||||
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
|
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
|
||||||
return viewCurrentFeed('MarkAllReadGR:' + id)
|
return viewCurrentFeed('MarkAllReadGR:' + id);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -566,11 +564,11 @@ function collapse_feedlist() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewModeChanged() {
|
function viewModeChanged() {
|
||||||
return viewCurrentFeed('')
|
return viewCurrentFeed('');
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewLimitChanged() {
|
function viewLimitChanged() {
|
||||||
return viewCurrentFeed('')
|
return viewCurrentFeed('');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* function adjustArticleScore(id, score) {
|
/* function adjustArticleScore(id, score) {
|
||||||
|
@ -628,7 +626,7 @@ function hotkey_handler(e) {
|
||||||
|
|
||||||
if (e.target.nodeName == "INPUT" || e.target.nodeName == "TEXTAREA") return;
|
if (e.target.nodeName == "INPUT" || e.target.nodeName == "TEXTAREA") return;
|
||||||
|
|
||||||
var keycode;
|
var keycode = false;
|
||||||
var shift_key = false;
|
var shift_key = false;
|
||||||
|
|
||||||
var cmdline = $('cmdline');
|
var cmdline = $('cmdline');
|
||||||
|
@ -780,7 +778,7 @@ function hotkey_handler(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keycode == 85) { // u
|
if (keycode == 85) { // u
|
||||||
selectionToggleUnread(undefined, false, true)
|
selectionToggleUnread(undefined, false, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
|
|
||||||
<div id="feeds-holder" dojoType="dijit.layout.ContentPane" region="leading" style="width : 20%" splitter="true">
|
<div id="feeds-holder" dojoType="dijit.layout.ContentPane" region="leading" style="width : 20%" splitter="true">
|
||||||
<div id="feedlistLoading">
|
<div id="feedlistLoading">
|
||||||
<img src='images/indicator_tiny.gif'>
|
<img src='images/indicator_tiny.gif'/>
|
||||||
<?php echo __("Loading, please wait..."); ?></div>
|
<?php echo __("Loading, please wait..."); ?></div>
|
||||||
<div id="feedTree"></div>
|
<div id="feedTree"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
<?php } else if ($op == 'callback') { ?>
|
<?php } else if ($op == 'callback') { ?>
|
||||||
|
|
||||||
<?php print_notice(__('Congratulations! You have successfully registered with Twitter.')) ?>
|
<p><?php print_notice(__('Congratulations! You have successfully registered with Twitter.')) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form method="GET" action="prefs.php">
|
<form method="GET" action="prefs.php">
|
||||||
|
|
21
viewfeed.js
21
viewfeed.js
|
@ -27,7 +27,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
||||||
var is_cat = false;
|
var is_cat = false;
|
||||||
var feed_id = false;
|
var feed_id = false;
|
||||||
|
|
||||||
var reply;
|
var reply = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
reply = JSON.parse(transport.responseText);
|
reply = JSON.parse(transport.responseText);
|
||||||
|
@ -71,7 +71,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
||||||
|
|
||||||
var counters = reply['counters'];
|
var counters = reply['counters'];
|
||||||
var articles = reply['articles'];
|
var articles = reply['articles'];
|
||||||
var runtime_info = reply['runtime-info'];
|
//var runtime_info = reply['runtime-info'];
|
||||||
|
|
||||||
if (offset == 0 && infscroll_req == false) {
|
if (offset == 0 && infscroll_req == false) {
|
||||||
dijit.byId("headlines-frame").attr('content',
|
dijit.byId("headlines-frame").attr('content',
|
||||||
|
@ -630,7 +630,7 @@ function toggleUnread(id, cmode, effect) {
|
||||||
function selectionRemoveLabel(id, ids) {
|
function selectionRemoveLabel(id, ids) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (!ids) var ids = getSelectedArticleIds2();
|
if (!ids) ids = getSelectedArticleIds2();
|
||||||
|
|
||||||
if (ids.length == 0) {
|
if (ids.length == 0) {
|
||||||
alert(__("No articles are selected."));
|
alert(__("No articles are selected."));
|
||||||
|
@ -692,7 +692,7 @@ function selectionToggleUnread(set_state, callback, no_error) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < rows.length; i++) {
|
for (var i = 0; i < rows.length; i++) {
|
||||||
var row = $("RROW-" + rows[i]);
|
var row = $("RROW-" + rows[i]);
|
||||||
if (row) {
|
if (row) {
|
||||||
if (set_state == undefined) {
|
if (set_state == undefined) {
|
||||||
|
@ -754,7 +754,7 @@ function selectionToggleMarked() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < rows.length; i++) {
|
for (var i = 0; i < rows.length; i++) {
|
||||||
toggleMark(rows[i], true, true);
|
toggleMark(rows[i], true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -786,7 +786,7 @@ function selectionTogglePublished() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < rows.length; i++) {
|
for (var i = 0; i < rows.length; i++) {
|
||||||
togglePub(rows[i], true, true);
|
togglePub(rows[i], true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -887,7 +887,7 @@ function catchupPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
selectArticles('all');
|
selectArticles('all');
|
||||||
selectionToggleUnread(false, 'viewCurrentFeed()', true)
|
selectionToggleUnread(false, 'viewCurrentFeed()', true);
|
||||||
selectArticles('none');
|
selectArticles('none');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -904,7 +904,6 @@ function deleteSelection() {
|
||||||
|
|
||||||
var fn = getFeedName(getActiveFeedId(), activeFeedIsCat());
|
var fn = getFeedName(getActiveFeedId(), activeFeedIsCat());
|
||||||
var str;
|
var str;
|
||||||
var op;
|
|
||||||
|
|
||||||
if (getActiveFeedId() != 0) {
|
if (getActiveFeedId() != 0) {
|
||||||
str = __("Delete %d selected articles in %s?");
|
str = __("Delete %d selected articles in %s?");
|
||||||
|
@ -1007,7 +1006,7 @@ function catchupSelection() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
selectionToggleUnread(false, 'viewCurrentFeed()', true)
|
selectionToggleUnread(false, 'viewCurrentFeed()', true);
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("catchupSelection", e);
|
exception_error("catchupSelection", e);
|
||||||
|
@ -1315,7 +1314,7 @@ function cdmExpandArticle(id) {
|
||||||
var reply = JSON.parse(transport.responseText);
|
var reply = JSON.parse(transport.responseText);
|
||||||
|
|
||||||
reply.each(function(article) {
|
reply.each(function(article) {
|
||||||
$("CWRAP-" + article['id']).innerHTML = article['content']
|
$("CWRAP-" + article['id']).innerHTML = article['content'];
|
||||||
cids_requested.remove(article['id']);
|
cids_requested.remove(article['id']);
|
||||||
});
|
});
|
||||||
}});
|
}});
|
||||||
|
@ -1665,7 +1664,7 @@ function getVisibleArticleIds() {
|
||||||
|
|
||||||
function cdmClicked(event, id) {
|
function cdmClicked(event, id) {
|
||||||
try {
|
try {
|
||||||
var shift_key = event.shiftKey;
|
//var shift_key = event.shiftKey;
|
||||||
|
|
||||||
hideAuxDlg();
|
hideAuxDlg();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue