Skip to content

Commit

Permalink
Disable wikipedia buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexxie9952 committed Apr 14, 2024
1 parent 11b4222 commit 36f505a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion freeciv-web/src/main/webapp/javascript/helpdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,12 @@ function clear_sidebar()
**************************************************************************/
function wiki_on_item_button(item_name)
{
/* Item name shouldn't be a qualified string. */
/* Returning nothing disables wikipedia buttons. Remove this and
uncomment section below it, to re-enable wikipedia buttons. */
return "";

/*
// Item name shouldn't be a qualified string.
item_name = string_unqualify(item_name);
if (freeciv_wiki_docs[item_name] == null) {
Expand All @@ -612,6 +617,7 @@ function wiki_on_item_button(item_name)
return ("<button class='help_button' onclick=\"show_wikipedia_dialog('"
+ item_name.replace(/\\/g, "\\\\").replace(/'/g, "\\'")
+ "');\">Wikipedia on " + item_name + "</button>");
*/
}

/**************************************************************************
Expand Down

0 comments on commit 36f505a

Please sign in to comment.