mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
closes #3569
This commit is contained in:
@@ -307,6 +307,9 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
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">
|
||||
<strong>[[global:500.title]]</strong>
|
||||
<p>[[global:500.message]]</p>
|
||||
@@ -5,3 +6,4 @@
|
||||
<!-- IF error --><p>{error}</p><!-- ENDIF error -->
|
||||
|
||||
</div>
|
||||
</script>
|
||||
Reference in New Issue
Block a user