From 36f505a78c1dafca5cd8228ac23881c376cc584c Mon Sep 17 00:00:00 2001 From: Lexxie9952 <32187224+Lexxie9952@users.noreply.github.com> Date: Sun, 14 Apr 2024 02:37:28 -0700 Subject: [PATCH] Disable wikipedia buttons --- freeciv-web/src/main/webapp/javascript/helpdata.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/freeciv-web/src/main/webapp/javascript/helpdata.js b/freeciv-web/src/main/webapp/javascript/helpdata.js index 37980319d..6b05df15c 100644 --- a/freeciv-web/src/main/webapp/javascript/helpdata.js +++ b/freeciv-web/src/main/webapp/javascript/helpdata.js @@ -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) { @@ -612,6 +617,7 @@ function wiki_on_item_button(item_name) return (""); + */ } /**************************************************************************