Support for javascript only divs/pages
[fa-stable.git] / js / inserts.js
index ec1626a0b23388a111905887905c0b66d93eb6b1..ff479f30da60f652b708d94eee55a6453b3d6999 100644 (file)
@@ -8,10 +8,11 @@ function debug(msg) {
 function progbar() {
        box = document.getElementById('msgbox');
     box.innerHTML= "<center><table width='98%' border='1' cellpadding=3 "
-       +"style='border-collapse: collapse' bordercolor='#007700'>"
+       +"bordercolor='#007700' style='border-collapse: collapse'>"
        +"<tr><td align='center' bgcolor='#ccffcc' >"
                +"<img src='"+user.theme+"images/progressbar.gif' alt='"
                +user.loadtxt+"' /></td></tr></table></center><br>";
+       box.style.display = 'block';
 }
 
 function save_focus(e) {
@@ -161,6 +162,11 @@ var inserts = {
            // this hides search button for js enabled browsers
            e.style.display = 'none';
        },
+       'div.js_only': 
+       function(e) {
+           // this shows divs for js enabled browsers only
+           e.style.display = 'block';
+       },
        'input.ajaxsubmit,input.editbutton,input.navibutton': 
        function(e) {
            e.onclick = function() {