Changeset 3

Show
Ignore:
Timestamp:
06/21/05 15:43:49 (3 years ago)
Author:
t-bone
Message:

Plus status bar icon

Location:
uppity/trunk
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • uppity/trunk

    • Property svn:ignore set to
      uninstall
  • uppity/trunk/chrome/uppity/content/uppity/uppity-overlay.xul

    r2 r3  
    2424<![CDATA[ 
    2525window.addEventListener("load", function() { 
    26 var sb=document.getElementById('status-bar-uppity'); 
    27 //sb.style.display='none'; 
     26uppity.setSBButtonVis(); 
    2827}, false); // end window.addEventListener("load"...) 
    2928]]> 
  • uppity/trunk/chrome/uppity/content/uppity/uppity.js

    r2 r3  
    5858saveOptions:function() { 
    5959    try { 
    60     setPref('bool', 'uppity.sb-icon' 
    61         (bool)window.document.getElementById('uppity-sb-icon').checked=this 
     60    this.setPref('bool', 'uppity.sb-icon', 
     61        Boolean(window.document.getElementById('uppity-sb-icon').checked) 
    6262    ); 
     63 
     64    //this might be a little dirty .... 
     65    window.opener.opener.uppity.setSBButtonVis(); 
    6366    } catch (e) { this.dumpErr(e) } 
    6467    return true; 
     
    7376}, 
    7477 
     78setSBButtonVis:function() { 
     79    var show=this.getPref('bool', 'uppity.sb-icon'); 
     80    var sb=document.getElementById('status-bar-uppity'); 
     81    sb.style.display=(show?'-moz-box':'none'); 
     82} 
    7583}//close var uppity