This commit is contained in:
McShelby 2023-02-03 23:08:40 +00:00
parent 0cd4d8b917
commit 0fa7fc6c2e
355 changed files with 8163 additions and 8153 deletions

View file

@ -216,11 +216,21 @@ function initMermaid( update, attrs ) {
attrs = attrs || {
'theme': variants.getColorValue( 'MERMAID-theme' ),
};
var search;
if( update ){
search = sessionStorage.getItem( baseUriFull+'search-value' );
unmark();
}
var is_initialized = ( update ? update_func( attrs ) : init_func( attrs ) );
if( is_initialized ){
mermaid.init();
$(".mermaid svg").svgPanZoom({});
}
if( update && search && search.length ){
sessionStorage.setItem( baseUriFull+'search-value', search );
mark();
}
}
function initSwagger( update, attrs ){