mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-11-04 12:07:23 +08:00 
			
		
		
		
	Add hound linter suggestions
This commit is contained in:
		
							parent
							
								
									2d26c70d40
								
							
						
					
					
						commit
						0bdbe84d4d
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,7 @@ $(document).on('click', '.sci--layout--menu-item[data-submenu=true]', (e) => {
 | 
			
		|||
});
 | 
			
		||||
 | 
			
		||||
$(document).on('click', '.sci--layout--navigator-open', (e) => {
 | 
			
		||||
  navigatorContainer.toggleNavigatorState(false)
 | 
			
		||||
  navigatorContainer.toggleNavigatorState(false);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
$(document).on('click', '.btn', function() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,7 +26,7 @@ window.addEventListener('DOMContentLoaded', () => {
 | 
			
		|||
      })
 | 
			
		||||
    },
 | 
			
		||||
    methods: {
 | 
			
		||||
      toggleNavigatorState: function (newNavigatorState) {
 | 
			
		||||
      toggleNavigatorState: function(newNavigatorState) {
 | 
			
		||||
        let stateUrl = $('#sciNavigationNavigatorContainer').attr('data-navigator-state-url');
 | 
			
		||||
        $.post(stateUrl, {state: newNavigatorState ? 'collapsed' : 'open'});
 | 
			
		||||
        $('.sci--layout').attr('data-navigator-collapsed', newNavigatorState);
 | 
			
		||||
| 
						 | 
				
			
			@ -51,7 +51,8 @@ window.addEventListener('DOMContentLoaded', () => {
 | 
			
		|||
          });
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
  }});
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  window.navigatorContainer = navigator
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue