summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-20 06:47:57 +0100
committerAndrew Dolgov <[email protected]>2008-05-20 06:47:57 +0100
commitee8768dbbbf5820e9d37a7ff7a834d37021fcac7 (patch)
tree0a2174f6930b83b7ce77496e8390932ef2d16dcb /functions.js
parente86dbf9d9bd9fa6a80ed0272ad1e4b2a6255376c (diff)
massive code cleanup
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js27
1 files changed, 1 insertions, 26 deletions
diff --git a/functions.js b/functions.js
index 83e24bf09..c66993c2a 100644
--- a/functions.js
+++ b/functions.js
@@ -11,25 +11,12 @@ Array.prototype.remove = function(s) {
}
}
-function browser_has_opacity() {
- return navigator.userAgent.match("Gecko") != null ||
- navigator.userAgent.match("Opera") != null;
-}
-
function is_msie() {
return navigator.userAgent.match("MSIE");
}
function is_opera() {
- return navigator.userAgent.match("Opera");
-}
-
-function is_khtml() {
- return navigator.userAgent.match("KHTML");
-}
-
-function is_safari() {
- return navigator.userAgent.match("Safari");
+ return window.opera;
}
function exception_error(location, e, silent) {
@@ -1233,10 +1220,6 @@ function infobox_callback2(transport) {
var shadow = document.getElementById('infoBoxShadow');
if (box) {
-/* if (!is_safari()) {
- new Draggable(shadow);
- } */
-
box.innerHTML=transport.responseText;
if (shadow) {
shadow.style.display = "block";
@@ -1507,14 +1490,6 @@ function getRelativePostIds(id, limit) {
var r_id = rows[i].id.replace("RROW-", "");
if (r_id == id) {
-/* if (i > 0) ids.push(rows[i-1].id.replace("RROW-", ""));
- if (i > 1) ids.push(rows[i-2].id.replace("RROW-", ""));
- if (i > 2) ids.push(rows[i-3].id.replace("RROW-", ""));
-
- if (i < rows.length-1) ids.push(rows[i+1].id.replace("RROW-", ""));
- if (i < rows.length-2) ids.push(rows[i+2].id.replace("RROW-", ""));
- if (i < rows.length-3) ids.push(rows[i+3].id.replace("RROW-", "")); */
-
for (var k = 1; k <= limit; k++) {
var nid = false;