Browse Source

delete data-toggle="tab"

zahmis 5 years ago
parent
commit
c9a3b526fc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/client/js/legacy/crowi.js

+ 2 - 2
src/client/js/legacy/crowi.js

@@ -220,7 +220,7 @@ window.addEventListener('load', (e) => {
     if ((window.location.hash === '#edit' || window.location.hash === '#edit-form')) {
     if ((window.location.hash === '#edit' || window.location.hash === '#edit-form')) {
       navigationContainer.setEditorMode('edit');
       navigationContainer.setEditorMode('edit');
 
 
-      $('a[data-toggle="tab"][href="#edit"]').tab('show');
+      $('a[href="#edit"]').tab('show');
       $('body').addClass('on-edit');
       $('body').addClass('on-edit');
       $('body').addClass('builtin-editor');
       $('body').addClass('builtin-editor');
 
 
@@ -230,7 +230,7 @@ window.addEventListener('load', (e) => {
     else if (window.location.hash === '#hackmd') {
     else if (window.location.hash === '#hackmd') {
       navigationContainer.setEditorMode('hackmd');
       navigationContainer.setEditorMode('hackmd');
 
 
-      $('a[data-toggle="tab"][href="#hackmd"]').tab('show');
+      $('a[href="#hackmd"]').tab('show');
       $('body').addClass('on-edit');
       $('body').addClass('on-edit');
       $('body').addClass('hackmd');
       $('body').addClass('hackmd');
     }
     }