From 24d3e25126830c3b05e3fa6f021a798342302a30 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Sun, 8 Jan 2017 11:21:55 -0800 Subject: [PATCH] getUris dialog improvements This patch resolves #295 by making the Download Settings fieldset collapsed by default and moving the examples of URIs in textarea into the placeholder of textarea itself. It also allows form submission when textarea is focused by pressing Ctrl+Enter. --- index.html | 32 ++++++++++++++------------------ js/ctrls/modal.js | 3 ++- js/directives/textarea.js | 16 ++++++++++++++++ js/translate/de_DE.js | 2 -- js/translate/en_US.js | 2 -- js/translate/es_ES.js | 2 -- js/translate/fr_FR.js | 2 -- js/translate/it_IT.js | 2 -- js/translate/nl_NL.js | 2 -- js/translate/pl_PL.js | 1 - js/translate/ru_RU.js | 2 -- js/translate/template.js | 2 -- js/translate/th_TH.js | 2 -- js/translate/tr_TR.js | 2 -- js/translate/zh_CN.js | 2 -- js/translate/zh_TW.js | 2 -- 16 files changed, 32 insertions(+), 44 deletions(-) create mode 100644 js/directives/textarea.js diff --git a/index.html b/index.html index ce63da0..6c6e80c 100755 --- a/index.html +++ b/index.html @@ -41,6 +41,7 @@ + @@ -811,22 +812,17 @@ {{ '- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.' | translate }}
{{ '- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.' | translate }}
{{ '- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.' | translate }}
- {{ 'E.g. to add 2 files (downloads) f1.jpg and f2.mp4 with 2 URIs (mirrors) each, add URIs as follows' | translate }}:
- -
-http://ex1.com/f1.jpg http://ex2.com/f1.jpg
-http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
-

- - +

-