diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index d1d7ecb4be..2ab64c65e8 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -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(); + }); }); \ No newline at end of file diff --git a/src/views/500.tpl b/src/views/500.tpl index 6408fbb79d..537cbac136 100644 --- a/src/views/500.tpl +++ b/src/views/500.tpl @@ -1,3 +1,4 @@ + \ No newline at end of file