Module: deluge
Branch: 1.3-stable
Commit: 0d665d772d86af66d3d5867512f9cc4924308290

Author: Damien Churchill <dam...@gmail.com>
Date:   Fri May  6 19:02:54 2011 +0100

fix the widths on the input boxes, whitespace changes too

---

 deluge/ui/web/js/deluge-all/add/UrlWindow.js |  140 +++++++++++++-------------
 1 files changed, 70 insertions(+), 70 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/add/UrlWindow.js 
b/deluge/ui/web/js/deluge-all/add/UrlWindow.js
index 963be02..2fa8199 100644
--- a/deluge/ui/web/js/deluge-all/add/UrlWindow.js
+++ b/deluge/ui/web/js/deluge-all/add/UrlWindow.js
@@ -1,6 +1,6 @@
 /*!
  * Deluge.add.UrlWindow.js
- * 
+ *
  * Copyright (c) Damien Churchill 2009-2010 <dam...@gmail.com>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -33,75 +33,75 @@
 Ext.namespace('Deluge.add');
 Deluge.add.UrlWindow = Ext.extend(Deluge.add.Window, {
 
-       title: _('Add from Url'),
-       modal: true,
-       plain: true,
-       layout: 'fit',
-       width: 350,
-       height: 155,
+    title: _('Add from Url'),
+    modal: true,
+    plain: true,
+    layout: 'fit',
+    width: 350,
+    height: 155,
+
+    buttonAlign: 'center',
+    closeAction: 'hide',
+    bodyStyle: 'padding: 10px 5px;',
+    iconCls: 'x-deluge-add-url-window-icon',
+
+    initComponent: function() {
+        Deluge.add.UrlWindow.superclass.initComponent.call(this);
+        this.addButton(_('Add'), this.onAddClick, this);
+
+        var form = this.add({
+            xtype: 'form',
+            defaultType: 'textfield',
+            baseCls: 'x-plain',
+            labelWidth: 55
+        });
+
+        this.urlField = form.add({
+            fieldLabel: _('Url'),
+            id: 'url',
+            name: 'url',
+            width: '97%'
+        });
+        this.urlField.on('specialkey', this.onAdd, this);
+
+        this.cookieField = form.add({
+            fieldLabel: _('Cookies'),
+            id: 'cookies',
+            name: 'cookies',
+            width: '97%'
+        });
+        this.cookieField.on('specialkey', this.onAdd, this);
+    },
+
+    onAddClick: function(field, e) {
+        if ((field.id == 'url' || field.id == 'cookies') && e.getKey() != 
e.ENTER) return;
+
+        var field = this.urlField;
+        var url = field.getValue();
+        var cookies = this.cookieField.getValue();
+        var torrentId = this.createTorrentId();
+
+        deluge.client.web.download_torrent_from_url(url, cookies, {
+            success: this.onDownload,
+            scope: this,
+            torrentId: torrentId
+        });
+        this.hide();
+        this.fireEvent('beforeadd', torrentId, url);
+    },
 
-       buttonAlign: 'center',
-       closeAction: 'hide',
-       bodyStyle: 'padding: 10px 5px;',
-       iconCls: 'x-deluge-add-url-window-icon',
-       
-       initComponent: function() {
-               Deluge.add.UrlWindow.superclass.initComponent.call(this);
-               this.addButton(_('Add'), this.onAddClick, this);
-               
-               var form = this.add({
-                       xtype: 'form',
-                       defaultType: 'textfield',
-                       baseCls: 'x-plain',
-                       labelWidth: 55
-               });
-               
-               this.urlField = form.add({
-                       fieldLabel: _('Url'),
-                       id: 'url',
-                       name: 'url',
-                       anchor: '100%'
-               });
-               this.urlField.on('specialkey', this.onAdd, this);
-               
-               this.cookieField = form.add({
-                       fieldLabel: _('Cookies'),
-                       id: 'cookies',
-                       name: 'cookies',
-                       anchor: '100%'
-               });
-               this.cookieField.on('specialkey', this.onAdd, this);
-       },
-       
-       onAddClick: function(field, e) {
-               if ((field.id == 'url' || field.id == 'cookies') && e.getKey() 
!= e.ENTER) return;
+    onDownload: function(filename, obj, resp, req) {
+        this.urlField.setValue('');
+        deluge.client.web.get_torrent_info(filename, {
+            success: this.onGotInfo,
+            scope: this,
+            filename: filename,
+            torrentId: req.options.torrentId
+        });
+    },
 
-               var field = this.urlField;
-               var url = field.getValue();
-               var cookies = this.cookieField.getValue();
-               var torrentId = this.createTorrentId();
-               
-               deluge.client.web.download_torrent_from_url(url, cookies, {
-                       success: this.onDownload,
-                       scope: this,
-                       torrentId: torrentId
-               });
-               this.hide();
-               this.fireEvent('beforeadd', torrentId, url);
-       },
-       
-       onDownload: function(filename, obj, resp, req) {
-               this.urlField.setValue('');
-               deluge.client.web.get_torrent_info(filename, {
-                       success: this.onGotInfo,
-                       scope: this,
-                       filename: filename,
-                       torrentId: req.options.torrentId
-               });
-       },
-       
-       onGotInfo: function(info, obj, response, request) {
-               info['filename'] = request.options.filename;
-               this.fireEvent('add', request.options.torrentId, info);
-       }
+    onGotInfo: function(info, obj, response, request) {
+        info['filename'] = request.options.filename;
+        this.fireEvent('add', request.options.torrentId, info);
+    }
 });

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to deluge-commit@googlegroups.com.
To unsubscribe from this group, send email to 
deluge-commit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to