aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas@loeuillet.org>2015-11-09 16:45:48 +0100
committerNicolas Lœuillet <nicolas@loeuillet.org>2015-11-09 16:45:48 +0100
commit0a0c600887dde4cc755de0862a3301830c415882 (patch)
tree4d82bc16e921248bb6ab1b203a33e1b55b4ff445 /src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js
parentf1eccfd63f214dcc730ab0d18a694a5465f425db (diff)
parent16bbb4aa417188e7c21eb4a1734adf0f0c9b25f9 (diff)
downloadwallabag-0a0c600887dde4cc755de0862a3301830c415882.tar.gz
wallabag-0a0c600887dde4cc755de0862a3301830c415882.tar.zst
wallabag-0a0c600887dde4cc755de0862a3301830c415882.zip
Merge pull request #1422 from wallabag/v2-ebook
V2 – Export entries
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js')
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js b/src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js
index edfdee82..491a7916 100755
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js
@@ -11,6 +11,14 @@ function init_filters() {
11 } 11 }
12} 12}
13 13
14function init_export() {
15 // no display if export not aviable
16 if ($("div").is("#export")) {
17 $('#button_export').show();
18 $('.button-collapse-right').sideNav({ edge: 'right' });
19 }
20}
21
14$(document).ready(function(){ 22$(document).ready(function(){
15 // sideNav 23 // sideNav
16 $('.button-collapse').sideNav(); 24 $('.button-collapse').sideNav();
@@ -26,6 +34,7 @@ $(document).ready(function(){
26 format: 'dd/mm/yyyy', 34 format: 'dd/mm/yyyy',
27 }); 35 });
28 init_filters(); 36 init_filters();
37 init_export();
29 38
30 $('#nav-btn-add-tag').on('click', function(){ 39 $('#nav-btn-add-tag').on('click', function(){
31 $(".nav-panel-add-tag").toggle(100); 40 $(".nav-panel-add-tag").toggle(100);