-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbootstrap.js
More file actions
26 lines (26 loc) · 766 Bytes
/
Copy pathbootstrap.js
File metadata and controls
26 lines (26 loc) · 766 Bytes
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
require.config({
paths: {
'notes-jquery-autocomplete': '../addons/notes/js/jquery.autocomplete',
'notes-jquery-tagsinput': '../addons/notes/js/jquery.tagsinput',
},
shim: {
'notes-jquery-tagsinput': {
deps: ['jquery', 'notes-jquery-autocomplete', 'css!../addons/notes/css/jquery.tagsinput.min.css'],
exports: '$.fn.extend'
},
}
});
if (Config.controllername == 'index' && Config.actionname == 'index') {
require.config({
paths: {
'notes': '../addons/notes/js/index',
},
shim: {
'notes': {
deps: ['css!../addons/notes/css/style.css'],
exports: 'Notes'
},
}
});
require(['notes']);
}