if (id == "global-unread") {
if (ctr > global_unread) {
- offlineDownloadStart();
+ offlineDownloadStart(1);
}
global_unread = ctr;
if (Element.visible("infoBoxShadow")) {
Element.hide("dialog_overlay");
-
- var shadow = $('infoBoxShadow');
- var box = $('infoBoxShadow');
-
- Element.hide(shadow);
+ Element.hide("infoBoxShadow");
- if (cleanup) box.innerHTML = " ";
+ if (cleanup) $("infoBoxShadow").innerHTML = " ";
enableHotkeys();
}
debug("infobox_callback2");
- if (!getInitParam("infobox_disable_overlay")) {
- Element.show("dialog_overlay");
- }
-
var box = $('infoBox');
- var shadow = $('infoBoxShadow');
+
if (box) {
- box.innerHTML=transport.responseText;
- if (shadow) {
- shadow.style.display = "block";
- } else {
- box.style.display = "block";
+ if (!getInitParam("infobox_disable_overlay")) {
+ Element.show("dialog_overlay");
}
+
+ box.innerHTML=transport.responseText;
+ Element.show("infoBoxShadow");
+ //Effect.SlideDown("infoBoxShadow", {duration : 1.0});
+
+
}
/* FIXME this needs to be moved out somewhere */
if (s.length > length) tmp += "…";
return tmp;
}
+
+/*
+function switchToFlash(e) {
+ try {
+ var targ = e;
+ if (!e) var e = window.event;
+ if (e.target) targ = e.target;
+ else if (e.srcElement) targ = e.srcElement;
+ if (targ.nodeType == 3) // defeat Safari bug
+ targ = targ.parentNode;
+
+ //targ is the link that was clicked
+ var audioTag=targ;
+ do {
+ audioTag=audioTag.previousSibling;
+ } while(audioTag && audioTag.nodeType != 1)
+
+ var flashPlayer = audioTag.getElementsByTagName('span')[0];
+ targ.parentNode.insertBefore(flashPlayer,targ);
+ targ.parentNode.removeChild(targ);
+ audioTag.parentNode.removeChild(audioTag);
+
+ return false;
+ } catch (e) {
+ exception_error("switchToFlash", e);
+ }
+}
+
+function html5AudioOrFlash(type) {
+ var audioTag = document.createElement('audio');
+ if(! audioTag.canPlayType || audioTag.canPlayType(type) == "no" ||
+ audioTag.canPlayType(type) == ""){
+ if($('switchToFlashLink')){
+ switchToFlash($('switchToFlashLink'));
+ }
+ }
+} */