aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/js/popupForm.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/js/popupForm.js')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/js/popupForm.js23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/js/popupForm.js b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/js/popupForm.js
index d233e600..b933acd1 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/js/popupForm.js
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/js/popupForm.js
@@ -2,6 +2,7 @@ $(document).ready(function() {
2 2
3 $("#search-form").hide(); 3 $("#search-form").hide();
4 $("#bagit-form").hide(); 4 $("#bagit-form").hide();
5 $("#filter-form").hide();
5 6
6 //--------------------------------------------------------------------------- 7 //---------------------------------------------------------------------------
7 // Toggle the "Search" popup in the sidebar 8 // Toggle the "Search" popup in the sidebar
@@ -19,6 +20,13 @@ $(document).ready(function() {
19 } 20 }
20 21
21 //--------------------------------------------------------------------------- 22 //---------------------------------------------------------------------------
23 // Toggle the "Filter" popup on entries list
24 //---------------------------------------------------------------------------
25 function toggleFilter() {
26 $("#filter-form").toggle();
27 }
28
29 //---------------------------------------------------------------------------
22 // Toggle the "Save a Link" popup in the sidebar 30 // Toggle the "Save a Link" popup in the sidebar
23 //--------------------------------------------------------------------------- 31 //---------------------------------------------------------------------------
24 function toggleBagit() { 32 function toggleBagit() {
@@ -50,6 +58,11 @@ $(document).ready(function() {
50 $("#searchfield").focus(); 58 $("#searchfield").focus();
51 }); 59 });
52 60
61 $("#filter").click(function(){
62 closePopups();
63 toggleFilter();
64 });
65
53 $("#bagit").click(function(){ 66 $("#bagit").click(function(){
54 closePopups(); 67 closePopups();
55 toggleBagit(); 68 toggleBagit();
@@ -60,13 +73,11 @@ $(document).ready(function() {
60 toggleSearch(); 73 toggleSearch();
61 }); 74 });
62 75
76 $("#filter-form-close").click(function(){
77 toggleFilter();
78 });
79
63 $("#bagit-form-close").click(function(){ 80 $("#bagit-form-close").click(function(){
64 toggleBagit(); 81 toggleBagit();
65 }); 82 });
66
67 // $("#").click(function(){
68 // toggleSearch();
69 // });
70
71
72}); 83});