diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-01-21 23:04:35 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-01-21 23:04:35 +0100 |
commit | 14d98f0611d195774eb4da011a56fe1ffac76ea4 (patch) | |
tree | da6313f6b338430ef9f36ee9c701637af94ca17c | |
parent | cdde19d6096c85a3ed9b9399482bcc04bb79583c (diff) | |
download | wallabag-14d98f0611d195774eb4da011a56fe1ffac76ea4.tar.gz wallabag-14d98f0611d195774eb4da011a56fe1ffac76ea4.tar.zst wallabag-14d98f0611d195774eb4da011a56fe1ffac76ea4.zip |
can add tags from the saving link popup
-rwxr-xr-x | themes/_global/js/saveLink.js | 7 | ||||
-rwxr-xr-x | themes/baggy/_pocheit-form.twig | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/themes/_global/js/saveLink.js b/themes/_global/js/saveLink.js index a7acd84c..9f66b73f 100755 --- a/themes/_global/js/saveLink.js +++ b/themes/_global/js/saveLink.js | |||
@@ -4,6 +4,8 @@ $.fn.ready(function() { | |||
4 | $bagitForm = $('#bagit-form'), | 4 | $bagitForm = $('#bagit-form'), |
5 | $bagitFormForm = $('#bagit-form-form'); | 5 | $bagitFormForm = $('#bagit-form-form'); |
6 | 6 | ||
7 | $("#tags2add").hide(); | ||
8 | |||
7 | /* ========================================================================== | 9 | /* ========================================================================== |
8 | bag it link and close button | 10 | bag it link and close button |
9 | ========================================================================== */ | 11 | ========================================================================== */ |
@@ -78,6 +80,11 @@ $.fn.ready(function() { | |||
78 | event.preventDefault(); | 80 | event.preventDefault(); |
79 | }); | 81 | }); |
80 | 82 | ||
83 | $('#showtaginput').click(function(){ | ||
84 | $('#tags2add').toggle(); | ||
85 | }); | ||
86 | |||
87 | |||
81 | /* ========================================================================== | 88 | /* ========================================================================== |
82 | Keyboard gestion | 89 | Keyboard gestion |
83 | ========================================================================== */ | 90 | ========================================================================== */ |
diff --git a/themes/baggy/_pocheit-form.twig b/themes/baggy/_pocheit-form.twig index bf2ae903..bc439134 100755 --- a/themes/baggy/_pocheit-form.twig +++ b/themes/baggy/_pocheit-form.twig | |||
@@ -4,6 +4,8 @@ | |||
4 | <a href="javascript: void(null);" id="bagit-form-close" class="close-button--popup close-button">×</a> | 4 | <a href="javascript: void(null);" id="bagit-form-close" class="close-button--popup close-button">×</a> |
5 | <input type="hidden" name="autoclose" value="1" /> | 5 | <input type="hidden" name="autoclose" value="1" /> |
6 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> | 6 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> |
7 | <span id="showtaginput">Add tags</span> | ||
8 | <input placeholder="tags, with commas" class="addurl" id="tags2add" name="tags" type="text"/> | ||
7 | <span id="add-link-result"></span> | 9 | <span id="add-link-result"></span> |
8 | <input type="submit" value="{% trans "save link!" %}" /> | 10 | <input type="submit" value="{% trans "save link!" %}" /> |
9 | </form> | 11 | </form> |