]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
tweak quickAddFeed dialog
[tt-rss.git] / functions.js
index 087a1364fe0c8252e2c341a07255086a4cc6de56..732e73ec846a2b4853d1aa09df9787b0a07054cc 100644 (file)
@@ -1395,6 +1395,30 @@ function showBlockElement(id, h_id) {
        } 
 }
 
+function appearBlockElement_afh(effect) {
+
+}
+
+function checkboxToggleElement(elem, id) {
+       if (elem.checked) {
+               Effect.SlideDown(id, {duration : 1.0});
+       } else {
+               Effect.SlideUp(id, {duration : 1.0});
+       }
+}
+
+function appearBlockElement(id, h_id) {
+
+       try {
+               Effect.Fade(h_id);
+               Effect.SlideDown(id, {duration : 1.0, afterFinish: appearBlockElement_afh});
+       } catch (e) {
+               exception_error("appearBlockElement", e);
+       }
+
+}
+
+
 function hideParentElement(e) {
        e.parentNode.style.display = "none";
 }
@@ -1516,6 +1540,9 @@ function infobox_callback() {
                        var box = document.getElementById('infoBox');
                        var shadow = document.getElementById('infoBoxShadow');
                        if (box) {                      
+
+                               new Draggable(shadow);
+
                                box.innerHTML=xmlhttp.responseText;                     
                                if (shadow) {
                                        shadow.style.display = "block";