From b10416b8f838caf98d20258d269385345398dff0 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 7 Jan 2009 00:48:38 +0000 Subject: [PATCH] merge webui fixes --- deluge/ui/webui/templates/ajax/static/js/deluge-add.js | 10 +++++----- deluge/ui/webui/templates/ajax/static/js/deluge-ui.js | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-add.js b/deluge/ui/webui/templates/ajax/static/js/deluge-add.js index f1327c6a0..c0d61adb3 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-add.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-add.js @@ -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); diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js b/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js index 428bf307e..845856698 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js @@ -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; }