This commit is contained in:
barisusakli
2015-09-29 18:38:18 -04:00
parent ca294fc6ec
commit 22d6742422
2 changed files with 6 additions and 1 deletions

View File

@@ -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();
});
});

View File

@@ -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>