merge webui fixes

This commit is contained in:
Marcos Pinto 2009-01-07 00:48:38 +00:00
parent 2af3869143
commit b10416b8f8
2 changed files with 9 additions and 6 deletions

View File

@ -194,17 +194,17 @@ Deluge.Widgets.AddTorrent.Url = new Class({
this.form = new Element('form');
this.urlInput = new Element('input', {
type: 'text',
id: 'urlInput',
name: 'urlInput'
'type': 'text',
'id': 'urlInput',
'name': 'urlInput'
});
this.okButton = new Element('button');
this.okButton.set('text', _('Ok'));
this.cancelButton = new Element('button');
this.cancelButton.set('text', _('Cancel'));
this.form.grab(new Element('label', {
for: 'urlInput',
text: _('Url'),
'for': 'urlInput',
'text': _('Url'),
}).addClass('fluid'));
this.form.grab(this.urlInput).grab(new Element('br'));
this.form.grab(this.okButton).grab(this.cancelButton);

View File

@ -383,7 +383,8 @@ Deluge.UI = {
});
break;
case 'create':
this.createWindow.show();
alert('Sorry, this hasn\'t been implemented yet.');
//this.createWindow.show();
break;
case 'add':
this.addWindow.show();
@ -401,6 +402,8 @@ Deluge.UI = {
case 'preferences':
this.prefsWindow.show();
break;
case 'connections':
alert('Sorry, this hasn\'t been implemented yet.');
default:
break;
}