Browse Source

Merge pull request #1881 from benhutchins/feature-webui-safe

Fix Help menu links in WebUI
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
611bddf485
  1. 6
      src/webui/html/index.html
  2. 36
      src/webui/scripts/mocha-init.js

6
src/webui/html/index.html

@ -60,9 +60,9 @@ @@ -60,9 +60,9 @@
<li>
<a class="returnFalse">_(&Help)</a>
<ul>
<li><a id="bugLink"><img class="MyMenuIcon" src="theme/tools-report-bug" width="16" height="16" onload="fixPNG(this)"/>_(Report a &bug)</a></li>
<li><a id="siteLink"><img class="MyMenuIcon" src="images/skin/qbittorrent16.png" width="16" height="16" onload="fixPNG(this)"/>_(Visit &Website)</a></li>
<li><a id="docsLink"><img class="MyMenuIcon" src="theme/help-contents" width="16" height="16" onload="fixPNG(this)"/>_(&Documentation)</a></li>
<li><a id="bugLink" target="_blank" href="http://bugs.qbittorrent.org/"><img class="MyMenuIcon" src="theme/tools-report-bug" width="16" height="16" onload="fixPNG(this)"/>_(Report a &bug)</a></li>
<li><a id="siteLink" target="_blank" href="http://www.qbittorrent.org/"><img class="MyMenuIcon" src="images/skin/qbittorrent16.png" width="16" height="16" onload="fixPNG(this)"/>_(Visit &Website)</a></li>
<li><a id="docsLink" target="_blank" href="http://wiki.qbittorrent.org/"><img class="MyMenuIcon" src="theme/help-contents" width="16" height="16" onload="fixPNG(this)"/>_(&Documentation)</a></li>
<li><a id="aboutLink"><img class="MyMenuIcon" src="theme/help-about" width="16" height="16" onload="fixPNG(this)"/>_(&About)</a></li>
</ul>
</li>

36
src/webui/scripts/mocha-init.js

@ -234,42 +234,6 @@ initializeWindows = function(){ @@ -234,42 +234,6 @@ initializeWindows = function(){
}
}
addClickEvent('bug', function(e){
new Event(e).stop();
new MochaUI.Window({
id: 'bugPage',
title: '_(Report a bug)',
loadMethod: 'iframe',
contentURL: 'http://bugs.qbittorrent.org/',
width: 650,
height: 400
});
});
addClickEvent('site', function(e){
new Event(e).stop();
new MochaUI.Window({
id: 'sitePage',
title: 'qBittorrent Website',
loadMethod: 'iframe',
contentURL: 'http://www.qbittorrent.org/',
width: 650,
height: 400
});
});
addClickEvent('docs', function(e){
new Event(e).stop();
new MochaUI.Window({
id: 'docsPage',
title: 'qBittorrent official wiki',
loadMethod: 'iframe',
contentURL: 'http://wiki.qbittorrent.org/',
width: 650,
height: 400
});
});
addClickEvent('about', function(e){
new Event(e).stop();
new MochaUI.Window({

Loading…
Cancel
Save