Changeset 916
- Timestamp:
- 2008-03-30 19:04:37 (8 months ago)
- Files:
-
- branches/1.0.x/chrome/content/about/about.xul (modified) (2 diffs)
- branches/1.0.x/chrome/content/dta/addurl.js (modified) (1 diff)
- branches/1.0.x/chrome/content/integration/elements.js (modified) (2 diffs)
- branches/1.0.x/chrome/content/preferences/prefs.js (modified) (2 diffs)
- branches/1.0.x/chrome/content/preferences/prefs.xul (modified) (2 diffs)
- branches/1.0.x/chrome/content/preferences/privacyPane.xul (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/chrome/content/about/about.xul
r884 r916 78 78 document.title = 'About ' + title; 79 79 } 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 } 80 88 ]]></script> 81 89 … … 113 121 <description> 114 122 DownThemAll! &about.privacy;.<html:br/> 115 &about.read; <html:span class="link" onclick="open Help('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>. 116 124 </description> 117 125 branches/1.0.x/chrome/content/dta/addurl.js
r886 r916 256 256 load: function DTA_load() { 257 257 try { 258 $('DownThemAll').getButton('help').hidden = !('openHelp' in window); 259 258 260 $('directory', 'renaming', 'URLaddress', 'hash').forEach( 259 261 function(e) { branches/1.0.x/chrome/content/integration/elements.js
r825 r916 516 516 } 517 517 ); 518 519 }catch(ex) {518 } 519 catch(ex) { 520 520 DTA_debug.dump("DTAContext(): ", ex); 521 521 } … … 566 566 this.toolsBase.parentNode.insertBefore(cur, this.toolsBase); 567 567 } 568 document.getElementById('dtaToolsHelp').hidden = !('openHelp' in window); 568 569 } 569 570 } catch(ex) { branches/1.0.x/chrome/content/preferences/prefs.js
r801 r916 94 94 $("butShowLog", 'butDelLog', 'butRevealLog') 95 95 .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'); 96 104 } 97 105 } … … 439 447 // XXX 440 448 } 449 }, 450 showHelp: function() { 451 if ('openHelp' in window) { 452 return; 453 } 454 DTA_Mediator.openTab('chrome://dta-help/content/preferences.html'); 441 455 } 442 456 } branches/1.0.x/chrome/content/preferences/prefs.xul
r590 r916 23 23 buttonlabelextra2="&buttonlabelextra2;" 24 24 ondialogextra2="Prefs.restoreAll();" 25 ondialoghelp="Prefs.showHelp();" 25 26 persist="lastSelected screenX screenY" 26 27 onload="Prefs.load();" … … 38 39 <script type="application/javascript;version=1.7" src="chrome://dta/content/common/internalFunctions.js"/> 39 40 <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"/> 40 42 </prefwindow> branches/1.0.x/chrome/content/preferences/privacyPane.xul
r805 r916 93 93 <caption label="&privacypane.notice.caption;"/> 94 94 <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();"/> 96 96 </groupbox> 97 97 </prefpane>
