From 366b5e1f95ea99b9815b25057caa5fad6b22d812 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 7 Jan 2009 21:12:05 +0000 Subject: [PATCH] add mime icons to the white theme couple of stubs in the add window --- .../webui/templates/ajax/static/js/deluge-add.js | 9 +++++++++ .../ajax/static/themes/white/mime_icons/image.png | Bin 0 -> 693 bytes .../static/themes/white/mime_icons/unknown.png | Bin 0 -> 655 bytes 3 files changed, 9 insertions(+) create mode 100644 deluge/ui/webui/templates/ajax/static/themes/white/mime_icons/image.png create mode 100644 deluge/ui/webui/templates/ajax/static/themes/white/mime_icons/unknown.png 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 7b190210b..889514b44 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-add.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-add.js @@ -359,6 +359,11 @@ Deluge.Widgets.AddTorrent.OptionsTab = new Class({ }, onGetConfigSuccess: function(config) { + this.default_config = config; + this.setFormToDefault(); + }, + + setFormToDefault: function() { this.form.add_paused.checked = config['add_paused']; $each(this.form.compact_allocation, function(el) { if (el.value == config['compact_allocation'].toString()) { @@ -372,6 +377,10 @@ Deluge.Widgets.AddTorrent.OptionsTab = new Class({ $$W(this.form.max_upload_speed_per_torrent).setValue(config['max_upload_speed_per_torrent']); $$W(this.form.max_connections_per_torrent).setValue(config['max_connections_per_torrent']); $$W(this.form.max_upload_slots_per_torrent).setValue(config['max_upload_slots_per_torrent']); + }, + + setTorrent: function(torrent) { + } }); diff --git a/deluge/ui/webui/templates/ajax/static/themes/white/mime_icons/image.png b/deluge/ui/webui/templates/ajax/static/themes/white/mime_icons/image.png new file mode 100644 index 0000000000000000000000000000000000000000..ff783f5c0a073049be995c4d26b30fd2d87564da GIT binary patch literal 693 zcmV;m0!safP)21=K++hkI>dA%kxt7)^jUrInrXsAZ^OIDu}{u^Jrhybh`o6bjur zmB_+XBhzi;X!$Fra48U^{u4D5BwixF z-c#l)l;Wt|66y^ic8@aUoW(gNRYLPc z+RIz4bXJ*C5JJJ)V$Q?OR8Js4Sx)%*`Iys-K8@lNv6?ciN|1z8<*Yf+$-*-E{2HOT z&iA6nZgYq3dVwM^DdESk&2Z!q=P*1bo=8TN408%zA%OS+&X0NiV4I!w0=1M#F6W~C zgg?3AHQ>DBG~j$7(|~F~gQ6M;A&>=6bD@P{!x_KR z5~}GrIv5PU6pdoIyWMPF%ea;t1i;tA^0RY_>-;&Ho2u zOyywEKf3KU^A`qJB~1;gS=#^r03v!+SaefwW^{L9a%BJjc-kv3FW1Y=%Pvk%EJ)SM bFG>dhHrNJO5L3!r00000NkvXXu0mjf;x04J literal 0 HcmV?d00001 diff --git a/deluge/ui/webui/templates/ajax/static/themes/white/mime_icons/unknown.png b/deluge/ui/webui/templates/ajax/static/themes/white/mime_icons/unknown.png new file mode 100644 index 0000000000000000000000000000000000000000..bcdf6973f7ad46bff1033534b5683e6a9007e70e GIT binary patch literal 655 zcmV;A0&x9_P)(_DP2J7!cf{JpP*2sOXd#k6p3$8H5*@`J8aotNd~&Gw;K~kVJ}N1(lq~^=X+0w z7ZMc`uH?zr$G>x~Z5oXRR5e$t)jpO=rI#d$d)4iB{jZyw)A#%Pm(^+&?RI;%=L&@a zoO8u;xqPs`zP_WX{~b2QU}IwgYinyC&d<*eTCLWPy}frhJNupqWNkDgBkw)__Ih}L z03goiUvF)1AGO-;PbVj*KP#0AE-o$*kpxMoDntZ91hQZa2Lm|gUTwbE{MKwXw+;^v zGXj#J5-Nho7{qZ5+>3z#(lo_&=NkQf|80^aUyqNEKG*B@i6a%t2%-w_J$k(!mQ|8G zLy{y2A>G;CeN&oDCcm935k-WA003B7Sy?LZv{;054&B>Z7-Qg^omyb#-+Pb#VDP}g z-86D(ia3rTA|Ms2gd-JXgdhPV@x-}>w;N+%t%a&0gshj;j6ju;AV|{`qtOUU6c8DM zd_E5mfoe8AMgtzVF87>R_?PA+fbo;b&E?fq4