couple of bug fixes, add some strings to be passed through gettext in

the rendered html
This commit is contained in:
Damien Churchill 2008-11-10 18:00:21 +00:00
parent 480673c1d1
commit 8398fa91f5
4 changed files with 28 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,9 +6,8 @@
<link rel="shortcut icon" href="$base/static/images/deluge-icon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="$base/template/static/css/mooui.css" />
<link rel="stylesheet" type="text/css" href="$base/template_style.css" />
<script src="$base/static/mootools-1.2-core.js" type="text/javascript"></script>
<script src="$base/static/mootools-1.2.1-core-yc.js" type="text/javascript"></script>
<script src="$base/static/mootools-1.2-more.js" type="text/javascript"></script>
<script src="$base/template/static/js/gears_init.js" type="text/javascript"></script>
<script src="$base/template/static/js/Rpc.js" type="text/javascript"></script>
<script src="$base/static/mooui.js" type="text/javascript"></script>
<script src="$base/gettext.js" type="text/javascript"></script>

View File

@ -1,13 +1,13 @@
<h3>Torrents</h3>
<select size="8"/>
<h3>$_('Torrents')</h3>
<select size="8"></select>
<div id="addButtons">
<button class="file">File</button>
<button class="url">Url</button>
<button class="infohash">Infohash</button>
<button class="remove">Remove</button>
<button class="file">$_('File')</button>
<button class="url">$_('Url')</button>
<button class="infohash">$_('Infohash')</button>
<button class="remove">$_('Remove')</button>
</div>
<div id="tabs" class="moouiTabs"></div>
<div id="buttons">
<button class="cancel">Cancel</button>
<button class="add">Add</button>
<button class="cancel">$_('Cancel')</button>
<button class="add">$_('Add')</button>
</div>

View File

@ -35,7 +35,6 @@ Deluge.Widgets.AddWindow = new Class({
this.torrents = this.content.getElement('select');
this.torrents.addEvent('change', this.bound.onTorrentChanged);
this.torrentInfo = new Hash();
this.tabs = new Widgets.Tabs(this.content.getElement('div.moouiTabs'));
this.filesTab = new Deluge.Widgets.AddTorrent.FilesTab();
this.tabs.addPage(this.filesTab);