]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
search dialog improvements, main toolbar overhaul
[tt-rss.git] / functions.js
index e098468933a51059ec660b528b777cb22ff36778..89924fed6c3d4fad89579e7930d5916931aa97d8 100644 (file)
@@ -920,7 +920,7 @@ function leading_zero(p) {
        return s;
 }
 
-function closeInfoBox() {
+function closeInfoBox(cleanup) {
        var box = document.getElementById('infoBox');
        var shadow = document.getElementById('infoBoxShadow');
 
@@ -930,6 +930,8 @@ function closeInfoBox() {
                box.style.display = "none";
        }
 
+       if (cleanup) box.innerHTML = " ";
+
        enableHotkeys();
 
 }
@@ -1032,3 +1034,18 @@ function qafAdd() {
        xmlhttp.send(null);
 }
 
+function filterCR(e)
+{
+     var key;
+
+     if(window.event)
+          key = window.event.keyCode;     //IE
+     else
+          key = e.which;     //firefox
+
+     if(key == 13)
+          return false;
+     else
+          return true;
+}
+