mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 03:35:56 +00:00
misc typo fixes
This commit is contained in:
17
functions.js
17
functions.js
@@ -8,7 +8,7 @@ Array.prototype.remove = function(s) {
|
||||
for (var i=0; i < this.length; i++) {
|
||||
if (s == this[i]) this.splice(i, 1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* create console.log if it doesn't exist */
|
||||
|
||||
@@ -302,7 +302,7 @@ function gotoExportOpml(filename, settings) {
|
||||
if(x.length>1) {
|
||||
// remove negative sign
|
||||
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
|
||||
number=isNumeric(x.substring(j,j+1));
|
||||
if(!number) return number;
|
||||
@@ -368,7 +368,7 @@ function checkboxToggleElement(elem, id) {
|
||||
}
|
||||
|
||||
function dropboxSelect(e, v) {
|
||||
for (i = 0; i < e.length; i++) {
|
||||
for (var i = 0; i < e.length; i++) {
|
||||
if (e[i].value == v) {
|
||||
e.selectedIndex = i;
|
||||
break;
|
||||
@@ -435,11 +435,6 @@ function infobox_callback2(transport) {
|
||||
//console.log("infobox_callback2");
|
||||
notify('');
|
||||
|
||||
var content;
|
||||
var dtitle = "Dialog";
|
||||
|
||||
var dlg = transport.responseXML.getElementsByTagName("dlg")[0];
|
||||
|
||||
var title = transport.responseXML.getElementsByTagName("title")[0];
|
||||
if (title)
|
||||
title = title.firstChild.nodeValue;
|
||||
@@ -1012,7 +1007,7 @@ function quickAddFilter() {
|
||||
if (inPreferences()) {
|
||||
updateFilterList();
|
||||
}
|
||||
}})
|
||||
}});
|
||||
}
|
||||
}
|
||||
}});
|
||||
@@ -1354,7 +1349,7 @@ function getSelectedTableRowIds(id) {
|
||||
try {
|
||||
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")) {
|
||||
var bare_id = elem_rows[i].id.replace(/^[A-Z]*?-/, "");
|
||||
rows.push(bare_id);
|
||||
@@ -1397,7 +1392,7 @@ function editFeed(feed, event) {
|
||||
dialog.hide();
|
||||
notify('');
|
||||
updateFeedList();
|
||||
}})
|
||||
}});
|
||||
}
|
||||
},
|
||||
href: query});
|
||||
|
||||
Reference in New Issue
Block a user