fix javascript error

This commit is contained in:
yifang 2021-12-26 18:01:24 +08:00
parent d90c528819
commit e090716a2e

View file

@ -214,7 +214,6 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word,
"el=document.getElementById( 'gdfrom-' + newId ); el.className = el.className + ' gdactivearticle';" "el=document.getElementById( 'gdfrom-' + newId ); el.className = el.className + ' gdactivearticle';"
"gdCurrentArticle = 'gdfrom-' + newId; gdAudioLinks.current = newId;" "gdCurrentArticle = 'gdfrom-' + newId; gdAudioLinks.current = newId;"
"articleview.onJsActiveArticleChanged(gdCurrentArticle); } }" "articleview.onJsActiveArticleChanged(gdCurrentArticle); } }"
" } }"
"var overIframeId = null;" "var overIframeId = null;"
"function gdSelectArticle( id ) {" "function gdSelectArticle( id ) {"
"var selection = window.getSelection(); var range = document.createRange();" "var selection = window.getSelection(); var range = document.createRange();"