summaryrefslogtreecommitdiff
path: root/extensions/mistral/static/mistral/js/mistral.init.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/mistral/static/mistral/js/mistral.init.js')
-rw-r--r--extensions/mistral/static/mistral/js/mistral.init.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/extensions/mistral/static/mistral/js/mistral.init.js b/extensions/mistral/static/mistral/js/mistral.init.js
index 6f7b864..3e06ddf 100644
--- a/extensions/mistral/static/mistral/js/mistral.init.js
+++ b/extensions/mistral/static/mistral/js/mistral.init.js
@@ -4,10 +4,15 @@
4(function() { 4(function() {
5 'use strict'; 5 'use strict';
6 6
7 angular.module('mistral', ['merlin']) 7 angular
8 .run(['merlin.templates', function(templates) { 8 .module('mistral', ['merlin'])
9 templates.prefetch('/static/mistral/templates/fields/', 9 .run(initModule);
10 ['varlist', 'yaqllist']);
11 }])
12 10
13})(); \ No newline at end of file 11 initModule.$inject = ['merlin.templates'];
12
13 function initModule(templates) {
14 templates.prefetch('/static/mistral/templates/fields/',
15 ['varlist', 'yaqllist']);
16 }
17
18})();