-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodule.js
51 lines (44 loc) · 1.27 KB
/
module.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
define(['angular', 'leaflet'], function (ng) {
'use strict';
ng.module('cs_formbuilder.controllers', []);
ng.module('cs_formbuilder.services', []);
ng.module('cs_formbuilder.models', []);
ng.module('cs_formbuilder.directives', []);
var module = ng.module('cs_formbuilder', [
'cs_common',
'cs_messenger',
'esri.map',
'leaflet-directive',
'ui.bootstrap',
'cs_formbuilder.controllers',
'cs_formbuilder.services',
'cs_formbuilder.models',
'cs_formbuilder.directives'
]);
module.config(function ($provide, NavbarProvider) {
var angularBootstrapDirectives = [
'datepicker',
'datepickerPopupWrap'
];
for (var i = 0; i < angularBootstrapDirectives.length; i++) {
$provide.decorator(angularBootstrapDirectives[i]+'Directive', function ($delegate) {
$delegate[0].templateUrl = ['modules/cs_formbuilder/views/', $delegate[0].name, '.html'].join('');
return $delegate;
});
}
NavbarProvider.extend({
app: [
{
label: 'Forms',
href: '/forms',
class: 'fa-2x fa-th-list',
order: 20,
display: function() {
return true;
}
}
]
});
});
return module;
});