diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-11 17:22:04 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-11 17:22:04 +0200 |
commit | 4a74d9857cdb6116ce24df01b45176b92ad592c0 (patch) | |
tree | f8347803fe40f8b27218cbad8ed688c7dbf3a46e /themes/default | |
parent | 0d67b00d5d3b7ce1b76b639dcc65c415a5f13439 (diff) | |
parent | 7256e9e139eb07cdae1fbe3009454e6c7d9a8677 (diff) | |
download | wallabag-4a74d9857cdb6116ce24df01b45176b92ad592c0.tar.gz wallabag-4a74d9857cdb6116ce24df01b45176b92ad592c0.tar.zst wallabag-4a74d9857cdb6116ce24df01b45176b92ad592c0.zip |
Merge pull request #634 from wallabag/dev1.6.1b
1.6.1
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/_head.twig | 1 | ||||
-rw-r--r-- | themes/default/js/popupForm.js | 20 | ||||
-rwxr-xr-x | themes/default/js/saveLink.js | 2 |
3 files changed, 22 insertions, 1 deletions
diff --git a/themes/default/_head.twig b/themes/default/_head.twig index ffbfc22e..8c939e30 100755 --- a/themes/default/_head.twig +++ b/themes/default/_head.twig | |||
@@ -11,3 +11,4 @@ | |||
11 | <script src="{{ poche_url }}themes/default/js/autoClose.js"></script> | 11 | <script src="{{ poche_url }}themes/default/js/autoClose.js"></script> |
12 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> | 12 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> |
13 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> | 13 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> |
14 | <script src="{{ poche_url }}themes/default/js/popupForm.js"></script> \ No newline at end of file | ||
diff --git a/themes/default/js/popupForm.js b/themes/default/js/popupForm.js new file mode 100644 index 00000000..06be3f0c --- /dev/null +++ b/themes/default/js/popupForm.js | |||
@@ -0,0 +1,20 @@ | |||
1 | $(document).ready(function() { | ||
2 | |||
3 | $("#search-form").hide(); | ||
4 | |||
5 | function closeSearch() { | ||
6 | $("#search-form").toggle(); | ||
7 | $("#search").toggleClass("current"); | ||
8 | $("#search-arrow").toggleClass("arrow-down"); | ||
9 | } | ||
10 | |||
11 | $("#search").click(function(){ | ||
12 | closeSearch(); | ||
13 | }); | ||
14 | |||
15 | $("#search-form-close").click(function(){ | ||
16 | closeSearch(); | ||
17 | }); | ||
18 | |||
19 | |||
20 | }); \ No newline at end of file | ||
diff --git a/themes/default/js/saveLink.js b/themes/default/js/saveLink.js index ccc00d1e..bee453c0 100755 --- a/themes/default/js/saveLink.js +++ b/themes/default/js/saveLink.js | |||
@@ -75,7 +75,7 @@ $.fn.ready(function() { | |||
75 | ========================================================================== */ | 75 | ========================================================================== */ |
76 | 76 | ||
77 | $(window).keydown(function(e){ | 77 | $(window).keydown(function(e){ |
78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || e.keyCode == 27 ) { | 78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || (e.keyCode == 27 && $bagitForm.is(':visible') ) ) { |
79 | $bagit.removeClass("current"); | 79 | $bagit.removeClass("current"); |
80 | $("#bagit-arrow").removeClass("arrow-down"); | 80 | $("#bagit-arrow").removeClass("arrow-down"); |
81 | toggleSaveLinkForm(); | 81 | toggleSaveLinkForm(); |