mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
closes #3569
This commit is contained in:
@@ -307,6 +307,9 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.load();
|
app.load();
|
||||||
templates.cache['500'] = $('.tpl-500').html();
|
|
||||||
|
$('[data-template]').each(function() {
|
||||||
|
templates.cache[$(this).attr('data-template')] = $(this).html();
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<script type="text/tpl" data-template="500">
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<strong>[[global:500.title]]</strong>
|
<strong>[[global:500.title]]</strong>
|
||||||
<p>[[global:500.message]]</p>
|
<p>[[global:500.message]]</p>
|
||||||
@@ -5,3 +6,4 @@
|
|||||||
<!-- IF error --><p>{error}</p><!-- ENDIF error -->
|
<!-- IF error --><p>{error}</p><!-- ENDIF error -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user