diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-19 15:17:13 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-19 15:17:13 +0100 |
commit | 7785f0c75fd6db6c7db345a568093e7edb8b7573 (patch) | |
tree | 9054efb2de9d148bae289848b3023a34fb0020a7 /themes/default/_pocheit-form.twig | |
parent | fb5a9666ed99abe16b8823a98aed1a6dce03bb04 (diff) | |
parent | 01cd443441c401a82ae021e08dedd6709100be2c (diff) | |
download | wallabag-7785f0c75fd6db6c7db345a568093e7edb8b7573.tar.gz wallabag-7785f0c75fd6db6c7db345a568093e7edb8b7573.tar.zst wallabag-7785f0c75fd6db6c7db345a568093e7edb8b7573.zip |
Merge pull request #467 from mariroz/dev
"save a link" added to top menu (default theme) to toggle "save link" form, issue #461
Diffstat (limited to 'themes/default/_pocheit-form.twig')
-rwxr-xr-x | themes/default/_pocheit-form.twig | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/themes/default/_pocheit-form.twig b/themes/default/_pocheit-form.twig new file mode 100755 index 00000000..13096159 --- /dev/null +++ b/themes/default/_pocheit-form.twig | |||
@@ -0,0 +1,22 @@ | |||
1 | <div id="pocheit-form" class="messages info"> | ||
2 | <center> | ||
3 | <form method="get" action="index.php"> | ||
4 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> | ||
5 | <input type="submit" value="{% trans "save link!" %}" /> | ||
6 | </form> | ||
7 | </center> | ||
8 | </div> | ||
9 | <script type="text/javascript"> | ||
10 | $(document).ready(function() { | ||
11 | |||
12 | $("#pocheit-form").hide(); | ||
13 | |||
14 | $("#pocheit").click(function(){ | ||
15 | $("#pocheit-form").toggle(); | ||
16 | $("#pocheit").toggleClass("current"); | ||
17 | $("#pocheit-arrow").toggleClass("arrow-down"); | ||
18 | }); | ||
19 | |||
20 | |||
21 | }); | ||
22 | </script> | ||