Skip to content

Commit

Permalink
fix: disable anchor default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Oct 23, 2024
1 parent c846c5d commit c518da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/article_maker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word, QString const &
{
result += R"(<script src="qrc:///scripts/jquery-3.6.0.slim.min.js"></script>)";
result += R"(<script> jQuery.noConflict(); </script>)";

//disable anchor default behavior.
result += R"(<script> jQuery( "a" ).on( "click", function() { return false; } ); </script>)";
result += R"(<script src="qrc:///scripts/gd-custom.js"></script>)";
result += R"(<script src="qrc:///scripts/iframeResizer.min.js"></script>)";
}
Expand Down

0 comments on commit c518da1

Please sign in to comment.