Remove references to help

This commit is contained in:
James Cole
2022-02-03 10:32:20 +01:00
parent 944864ed25
commit ddabfbc1ad
10 changed files with 15 additions and 383 deletions

View File

@@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/** global: token, helpPageTitle, noHelpForPage,noHelpForPageTitle */
/** global: token, helpPageTitle */
$(function () {
"use strict";
$('#help').click(showHelp);
@@ -36,12 +36,7 @@ function showHelp(e) {
$('#helpBody').html('<span class="fa fa-refresh fa-spin"></span>');
$('#helpModal').modal('show');
$('#helpTitle').html(helpPageTitle);
$.getJSON('help/' + encodeURI(route)).done(function (data) {
$('#helpBody').html(data.html);
}).fail(function () {
$('#helpBody').html('<p class="text-danger">' + noHelpForPage + '</p>');
$('#helpTitle').html(noHelpForPageTitle);
});
$('#helpBody').html(helpPageBody);
$('#reenableGuidance').unbind('click').click(function () {
enableGuidance(route, specialPage);
return false;