1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-10 20:31:47 +00:00

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

Fix Help menu links in WebUI
This commit is contained in:
sledgehammer999 2014-08-28 18:29:42 +03:00
commit 611bddf485
2 changed files with 3 additions and 39 deletions

View File

@ -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>

View File

@ -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({