mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 04:46:44 +00:00
Strings for #1116 (help text)
This commit is contained in:
10
public/js/ff/help.js
vendored
10
public/js/ff/help.js
vendored
@@ -17,7 +17,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: token */
|
||||
/** global: token, helpPageTitle, noHelpForPage,noHelpForPageTitle */
|
||||
$(function () {
|
||||
"use strict";
|
||||
$('#help').click(showHelp);
|
||||
@@ -35,12 +35,12 @@ function showHelp(e) {
|
||||
}
|
||||
$('#helpBody').html('<i class="fa fa-refresh fa-spin"></i>');
|
||||
$('#helpModal').modal('show');
|
||||
$('#helpTitle').html('Help for this page');
|
||||
$.getJSON('help/' + encodeURI(route)).done(function (data) {
|
||||
$('#helpTitle').html(helpPageTitle);
|
||||
$.getJSON('helpx/' + encodeURI(route)).done(function (data) {
|
||||
$('#helpBody').html(data.html);
|
||||
}).fail(function () {
|
||||
$('#helpBody').html('<p class="text-danger">No help text could be found.</p>');
|
||||
$('#helpTitle').html('Apologies');
|
||||
$('#helpBody').html('<p class="text-danger">' + noHelpForPage + '</p>');
|
||||
$('#helpTitle').html(noHelpForPageTitle);
|
||||
});
|
||||
$('#reenableGuidance').unbind('click').click(function () {
|
||||
enableGuidance(route, specialPage);
|
||||
|
Reference in New Issue
Block a user