for (var i=0; i < this.length; i++) {
if (s == this[i]) this.splice(i, 1);
}
-}
+};
/* create console.log if it doesn't exist */
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;
}
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;
}
-function closeErrorBox() {
-
- if (Element.visible("errorBoxShadow")) {
- Element.hide("dialog_overlay");
- Element.hide("errorBoxShadow");
- }
-
- return false;
-}
-
function closeInfoBox(cleanup) {
try {
dialog = dijit.byId("infoBox");
//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;
if (inPreferences()) {
updateFilterList();
}
- }})
+ }});
}
}
}});
}
}
-function has_local_storage() {
+/*function has_local_storage() {
try {
return 'sessionStorage' in window && window['sessionStorage'] != null;
} catch (e) {
return false;
}
-}
+} */
function catSelectOnChange(elem) {
try {
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);
dialog.hide();
notify('');
updateFeedList();
- }})
+ }});
}
},
href: query});