diff options
Diffstat (limited to 'themes')
-rwxr-xr-x | themes/_global/js/saveLink.js | 7 | ||||
-rwxr-xr-x | themes/baggy/_pocheit-form.twig | 2 | ||||
-rwxr-xr-x | themes/default/_pocheit-form.twig | 2 |
3 files changed, 11 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> |
diff --git a/themes/default/_pocheit-form.twig b/themes/default/_pocheit-form.twig index 8c982db0..f4518fce 100755 --- a/themes/default/_pocheit-form.twig +++ b/themes/default/_pocheit-form.twig | |||
@@ -2,6 +2,8 @@ | |||
2 | <a href="javascript: void(null);" id="bagit-form-close"> </a> | 2 | <a href="javascript: void(null);" id="bagit-form-close"> </a> |
3 | <form method="get" action="index.php" id="bagit-form-form"> | 3 | <form method="get" action="index.php" id="bagit-form-form"> |
4 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> | 4 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> |
5 | <span id="showtaginput">Add tags</span> | ||
6 | <input placeholder="tags, with commas" class="addurl" id="tags2add" name="tags" type="text"/> | ||
5 | <input type="submit" value="{% trans "save link!" %}" /> | 7 | <input type="submit" value="{% trans "save link!" %}" /> |
6 | <div id="add-link-result"></div> | 8 | <div id="add-link-result"></div> |
7 | </form> | 9 | </form> |