-
- {% endif %}
{% endblock %}
+
+
{% if entries is empty %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css
index 72a7b2054..dee307f39 100755
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css
@@ -939,6 +939,19 @@ pre code {
font-size: 0.96em;
}
+#filter-form {
+ margin-top: 30px !important;
+ width: 500px;
+ height: 370px;
+ right: 5em;
+ left: inherit;
+}
+
+#filter-form form {
+ width: 500px;
+ height: 370px;
+}
+
/* ==========================================================================
6 = Media Queries
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 d233e600f..b933acd11 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() {
$("#search-form").hide();
$("#bagit-form").hide();
+ $("#filter-form").hide();
//---------------------------------------------------------------------------
// Toggle the "Search" popup in the sidebar
@@ -18,6 +19,13 @@ $(document).ready(function() {
}
}
+ //---------------------------------------------------------------------------
+ // Toggle the "Filter" popup on entries list
+ //---------------------------------------------------------------------------
+ function toggleFilter() {
+ $("#filter-form").toggle();
+ }
+
//---------------------------------------------------------------------------
// Toggle the "Save a Link" popup in the sidebar
//---------------------------------------------------------------------------
@@ -50,6 +58,11 @@ $(document).ready(function() {
$("#searchfield").focus();
});
+ $("#filter").click(function(){
+ closePopups();
+ toggleFilter();
+ });
+
$("#bagit").click(function(){
closePopups();
toggleBagit();
@@ -60,13 +73,11 @@ $(document).ready(function() {
toggleSearch();
});
+ $("#filter-form-close").click(function(){
+ toggleFilter();
+ });
+
$("#bagit-form-close").click(function(){
toggleBagit();
});
-
- // $("#").click(function(){
- // toggleSearch();
- // });
-
-
});