Changeset 2880

Show
Ignore:
Timestamp:
10/30/06 10:58:23 (7 years ago)
Author:
gregmac
Message:

Added warnings and reload functionality for browsers with no Javascript

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/common/mainstyle.css

    r2879 r2880  
    5353  background-repeat: repeat-y; 
    5454  background-position: left; 
     55} 
     56 
     57 
     58.attention { 
     59  background:red; 
     60  color:white; 
     61  font-weight:bold; 
     62} 
     63.attention a { 
     64  color:white; 
     65  font-weight:bold; 
     66} 
     67div.attention { 
     68  border:1px solid black; 
     69  padding:5px; 
    5570} 
    5671 
  • freepbx/trunk/amp_conf/htdocs/admin/config.php

    r2879 r2880  
    166166  echo "<div class=\"content\">\n"; 
    167167} 
     168 
     169echo "<noscript><div class=\"attention\">"._("WARNING: Javascript is disabled in your browser. The freePBX administration interface requires Javascript to run properly. Please enable javascript or switch to another  browser that supports it.")."</div></noscript>"; 
     170 
     171 
    168172// check access 
    169173if ( ($display != '') && !isset($fpbx_menu[$display]) ) { 
  • freepbx/trunk/amp_conf/htdocs/admin/footer.php

    r2879 r2880  
    8686if (isset($_SESSION["AMP_user"]) && ($_SESSION["AMP_user"]->checkSection(99))) { 
    8787  if ($need_reload) { 
    88     /* 
    8988    $href =  $_SERVER["PHP_SELF"] . "?clk_reload=true"; 
    9089    if (isset($_REQUEST['display']))  
     
    9392      $href .= '&amp;type='.$_REQUEST['type']; 
    9493     
    95     echo "<div class='inyourface'><a href='$href' >"; 
     94    echo "<noscript><div class='inyourface'><a href='$href' >"; 
    9695    echo _("You have made changes - when finished, click here to APPLY them"); 
    97     echo "</a></div>\n"; 
    98     */ 
     96    echo "</a></div></noscript>\n"; 
     97     
    9998     
    10099    echo "<script type=\"text/javascript\">if (ele = document.getElementById('need_reload_block')) { ele.style.display = 'block'; }</script>";