mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
New help thing.
This commit is contained in:
@@ -16,12 +16,12 @@ function showHelp(e) {
|
||||
$('#helpTitle').html('Please hold...');
|
||||
|
||||
$('#helpModal').modal('show');
|
||||
$('#helpTitle').html('Help for this page');
|
||||
$.getJSON('help/' + encodeURI(route)).done(function (data) {
|
||||
$('#helpBody').html(data.text);
|
||||
$('#helpTitle').html(data.title);
|
||||
$('#helpBody').html(data);
|
||||
}).fail(function () {
|
||||
$('#helpBody').html('<p class="text-danger">No help text could be found.</p>');
|
||||
$('#helpTitle').html('Sorry...');
|
||||
$('#helpTitle').html('Apologies');
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user