can add tags from the saving link popup

This commit is contained in:
Thomas Citharel 2015-01-21 23:04:35 +01:00
parent cdde19d609
commit 14d98f0611
2 changed files with 9 additions and 0 deletions

View file

@ -4,6 +4,8 @@ $.fn.ready(function() {
$bagitForm = $('#bagit-form'),
$bagitFormForm = $('#bagit-form-form');
$("#tags2add").hide();
/* ==========================================================================
bag it link and close button
========================================================================== */
@ -78,6 +80,11 @@ $.fn.ready(function() {
event.preventDefault();
});
$('#showtaginput').click(function(){
$('#tags2add').toggle();
});
/* ==========================================================================
Keyboard gestion
========================================================================== */

View file

@ -4,6 +4,8 @@
<a href="javascript: void(null);" id="bagit-form-close" class="close-button--popup close-button">&times;</a>
<input type="hidden" name="autoclose" value="1" />
<input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" />
<span id="showtaginput">Add tags</span>
<input placeholder="tags, with commas" class="addurl" id="tags2add" name="tags" type="text"/>
<span id="add-link-result"></span>
<input type="submit" value="{% trans "save link!" %}" />
</form>