diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-11-09 16:45:48 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-11-09 16:45:48 +0100 |
commit | 0a0c600887dde4cc755de0862a3301830c415882 (patch) | |
tree | 4d82bc16e921248bb6ab1b203a33e1b55b4ff445 /src/Wallabag/CoreBundle/Resources/views/themes/material/public/js | |
parent | f1eccfd63f214dcc730ab0d18a694a5465f425db (diff) | |
parent | 16bbb4aa417188e7c21eb4a1734adf0f0c9b25f9 (diff) | |
download | wallabag-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')
-rwxr-xr-x | src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js | 9 |
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 | ||
14 | function 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); |