]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
can add tags from the saving link popup
authorThomas Citharel <tcit@tcit.fr>
Wed, 21 Jan 2015 22:04:35 +0000 (23:04 +0100)
committerThomas Citharel <tcit@tcit.fr>
Wed, 21 Jan 2015 22:04:35 +0000 (23:04 +0100)
themes/_global/js/saveLink.js
themes/baggy/_pocheit-form.twig

index a7acd84c3e808969cac189ca5cf57d267cdba8d6..9f66b73f14e908f632314090a9f4e11d6f7648c6 100755 (executable)
@@ -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
    ========================================================================== */
index bf2ae903769637405f2fadfecf03200d4a19e91f..bc43913478443d31be77572d9d9d320b515814f7 100755 (executable)
@@ -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>