updating 500-embed to load after page is fully loaded, #5733
parent
26d4c18340
commit
a6b993ef6c
@ -1,12 +1,14 @@
|
|||||||
<script>
|
<script>
|
||||||
define('/assets/templates/500.jst', function () {
|
window.addEventListener('load', function () {
|
||||||
function compiled(helpers, context, get, iter, helper) {
|
define('/assets/templates/500.jst', function () {
|
||||||
return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' +
|
function compiled(helpers, context, get, iter, helper) {
|
||||||
helpers.__escape(get(context && context['path'])) + '</p>\n\t' +
|
return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' +
|
||||||
(get(context && context['error']) ? '<p>' + helpers.__escape(get(context && context['error'])) + '</p>' : '') + '\n\n\t' +
|
helpers.__escape(get(context && context['path'])) + '</p>\n\t' +
|
||||||
(get(context && context['returnLink']) ? '\n\t<p>[[error:goback]]</p>\n\t' : '') + '\n</div>\n';
|
(get(context && context['error']) ? '<p>' + helpers.__escape(get(context && context['error'])) + '</p>' : '') + '\n\n\t' +
|
||||||
}
|
(get(context && context['returnLink']) ? '\n\t<p>[[error:goback]]</p>\n\t' : '') + '\n</div>\n';
|
||||||
|
}
|
||||||
|
|
||||||
return compiled;
|
return compiled;
|
||||||
});
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue