Changeset 916

Show
Ignore:
Timestamp:
2008-03-30 19:04:37 (8 months ago)
Author:
MaierMan
Message:

#660: Intermediate solution for Help Viewer removal
branch version

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/chrome/content/about/about.xul

    r884 r916  
    7878                        document.title = 'About ' + title; 
    7979                } 
     80                function openNotice() { 
     81                        if ('openHelp' in window) { 
     82                                openHelp('About_Privacy','chrome://dta-help/content/help.rdf'); 
     83                        } 
     84                        else { 
     85                                openTab('chrome://dta-help/content/about.html#privacy'); 
     86                        } 
     87                } 
    8088  ]]></script> 
    8189         
     
    113121                <description> 
    114122                        DownThemAll! &about.privacy;.<html:br/> 
    115                         &about.read; <html:span class="link" onclick="openHelp('About_Privacy','chrome://dta-help/content/help.rdf');">&about.pnot;</html:span>. 
     123                        &about.read; <html:span class="link" onclick="openNotice();">&about.pnot;</html:span>. 
    116124                </description> 
    117125 
  • branches/1.0.x/chrome/content/dta/addurl.js

    r886 r916  
    256256        load: function DTA_load() { 
    257257                try { 
     258                        $('DownThemAll').getButton('help').hidden = !('openHelp' in window); 
     259                         
    258260                        $('directory', 'renaming', 'URLaddress', 'hash').forEach( 
    259261                                function(e) { 
  • branches/1.0.x/chrome/content/integration/elements.js

    r825 r916  
    516516                                } 
    517517                        ); 
    518  
    519                 } catch(ex) { 
     518                } 
     519                catch(ex) { 
    520520                        DTA_debug.dump("DTAContext(): ", ex); 
    521521                } 
     
    566566                                        this.toolsBase.parentNode.insertBefore(cur, this.toolsBase); 
    567567                                } 
     568                                document.getElementById('dtaToolsHelp').hidden = !('openHelp' in window);                        
    568569                        } 
    569570                } catch(ex) { 
  • branches/1.0.x/chrome/content/preferences/prefs.js

    r801 r916  
    9494                        $("butShowLog", 'butDelLog', 'butRevealLog') 
    9595                                .forEach(function(e){ e.disabled = true; }); 
     96                } 
     97        }, 
     98        showNotice: function() { 
     99                if ('openHelp' in window) { 
     100                        openHelp('About_Privacy','chrome://dta-help/content/help.rdf'); 
     101                } 
     102                else { 
     103                        DTA_Mediator.openTab('chrome://dta-help/content/about.html#privacy'); 
    96104                } 
    97105        } 
     
    439447                        // XXX 
    440448                } 
     449        }, 
     450        showHelp: function() { 
     451                if ('openHelp' in window) { 
     452                        return; 
     453                } 
     454                DTA_Mediator.openTab('chrome://dta-help/content/preferences.html'); 
    441455        } 
    442456} 
  • branches/1.0.x/chrome/content/preferences/prefs.xul

    r590 r916  
    2323        buttonlabelextra2="&buttonlabelextra2;" 
    2424        ondialogextra2="Prefs.restoreAll();" 
     25        ondialoghelp="Prefs.showHelp();" 
    2526        persist="lastSelected screenX screenY" 
    2627        onload="Prefs.load();" 
     
    3839        <script type="application/javascript;version=1.7" src="chrome://dta/content/common/internalFunctions.js"/> 
    3940        <script type="application/javascript;version=1.7" src="chrome://dta/content/preferences/prefs.js"/> 
     41        <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/> 
    4042</prefwindow> 
  • branches/1.0.x/chrome/content/preferences/privacyPane.xul

    r805 r916  
    9393                        <caption label="&privacypane.notice.caption;"/> 
    9494                        <description value="&privacypane.notice.desc;"/> 
    95                         <label style="color: blue; text-decoration: underline;" value="&privacypane.privacynotice.label;" onclick="openHelp('About_Privacy','chrome://dta-help/content/help.rdf');"/> 
     95                        <label style="color: blue; text-decoration: underline;" value="&privacypane.privacynotice.label;" onclick="Privacy.showNotice();"/> 
    9696                </groupbox> 
    9797        </prefpane>