]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js
[#1590] Add JSON import from wallabag v2
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / public / js / init.js
index d397f8e5cb27e31b5e5a2c25f62575303903bb1c..491a7916d68d5b1d2a09c240523375e28c23ccc2 100755 (executable)
@@ -11,6 +11,14 @@ function init_filters() {
     }
 }
 
+function init_export() {
+    // no display if export not aviable
+    if ($("div").is("#export")) {
+        $('#button_export').show();
+        $('.button-collapse-right').sideNav({ edge: 'right' });
+    }
+}
+
 $(document).ready(function(){
     // sideNav
     $('.button-collapse').sideNav();
@@ -26,7 +34,14 @@ $(document).ready(function(){
         format: 'dd/mm/yyyy',
     });
     init_filters();
+    init_export();
 
+    $('#nav-btn-add-tag').on('click', function(){
+       $(".nav-panel-add-tag").toggle(100);
+       $(".nav-panel-menu").addClass('hidden');
+       $("#tag_label").focus();
+       return false;
+    });
     $('#nav-btn-add').on('click', function(){
        $(".nav-panel-buttom").hide(100);
        $(".nav-panel-add").show(100);