From 22d67424224b148c8e46d725c0357ba62f1bbc83 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 29 Sep 2015 18:38:18 -0400 Subject: [PATCH] closes #3569 --- public/src/ajaxify.js | 5 ++++- src/views/500.tpl | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) 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