fix: add default value to js gdMakeArticleActive invoke

This commit is contained in:
YiFang Xiao 2023-05-12 09:20:19 +08:00
parent 3a24a43410
commit d1f5024b2b

View file

@ -649,9 +649,9 @@ void ArticleRequest::bodyFinished()
string jsVal = Html::escapeForJavaScript( dictId );
head += QString::fromUtf8(
R"( <div class="gdarticle %1 %2" id="%3"
onClick="gdMakeArticleActive( '%4' );"
onContextMenu="gdMakeArticleActive( '%4' );">)" )
R"( <div class="gdarticle %1 %2" id="%3"
onClick="gdMakeArticleActive( '%4', false );"
onContextMenu="gdMakeArticleActive( '%4', false );">)" )
.arg( closePrevSpan ? "" : " gdactivearticle" ,
collapse ? " gdcollapsedarticle" : "" ,
gdFrom.c_str() ,