File tree Expand file tree Collapse file tree 2 files changed +14
-32
lines changed Expand file tree Collapse file tree 2 files changed +14
-32
lines changed Original file line number Diff line number Diff line change 6
6
< meta charset ="utf-8 " />
7
7
< title > PureMVC TypeScript standard framework demo : Employee Admin </ title >
8
8
9
+ <!-- CSS used by jQuery UI, jQgrid and the Employee Admin demo -->
9
10
< link rel ="stylesheet " type ="text/css " media ="screen " href ="css/ui-lightness/jquery-ui-1.8.16.custom.css ">
10
11
< link rel ="stylesheet " type ="text/css " media ="screen " href ="lib/jqgrid/css/ui.jqgrid.css " />
11
12
< link rel ="stylesheet " href ="css/employee-admin.css "/>
12
13
13
- < script data-main ="main.js " src ="lib/require/require-jquery.js " type ="text/javascript "> </ script >
14
+ <!-- jQuery and what depends on it need too much compromises to be loaded as AMD modules -->
15
+ < script src ="lib/jquery/jquery-1.8.2.min.js " type ="text/javascript "> </ script >
16
+ < script src ="lib/jquery-ui/jquery-ui-1.8.16.custom.min.js " type ="text/javascript "> </ script >
17
+ < script src ="lib/jqgrid/js/jquery.jqGrid.src.js " type ="text/javascript "> </ script >
18
+ < script src ="lib/jqgrid/js/i18n/grid.locale-en.js " type ="text/javascript "> </ script >
19
+
20
+ <!-- Using require validates PureMVC and applications based on it load as AMD modules -->
21
+ < script data-main ="main.js " src ="lib/require/require.js " type ="text/javascript "> </ script >
14
22
15
23
</ head >
16
24
Original file line number Diff line number Diff line change 1
1
require . config
2
2
(
3
3
{
4
- baseUrl : 'lib/ ' ,
4
+ baseUrl : '. ' ,
5
5
6
6
paths :
7
7
{
8
- jQueryUi : 'jquery-ui/jquery-ui-1.8.16.custom.min' ,
9
- jqGrid : 'jqgrid/js/jquery.jqGrid.min' ,
10
- jqGridLocale : 'jqgrid/i18n/grid.locale-en' ,
11
-
12
- puremvc : 'puremvc/puremvc-typescript-standard-1.0' ,
13
- EmployeeAdmin : '../bin/puremvc-typescript-employeeadmin-1.0'
8
+ puremvc : 'lib/puremvc/puremvc-typescript-standard-1.0' ,
9
+ EmployeeAdmin : 'bin/puremvc-typescript-employeeadmin-1.0'
14
10
} ,
15
11
16
12
shims :
17
13
{
18
-
19
- "jqGrid" :
20
- {
21
- deps : [ "jquery" , "jqGridLocale" ]
22
- } ,
23
-
24
- "jqGridLocale" :
25
- {
26
- deps : [ "jquery" ]
27
- } ,
28
-
29
- "jQueryUi" :
30
- {
31
- deps : [ "jquery" ]
32
- } ,
33
-
34
14
"EmployeeAdmin" :
35
15
{
36
- deps : [ "puremvc" , "jquery" , "jqGrid" , "jQueryUi" ]
16
+ deps : [ "puremvc" ]
37
17
}
38
18
39
19
}
@@ -45,22 +25,16 @@ require
45
25
46
26
[
47
27
'puremvc' ,
48
- 'jqGridLocale' ,
49
- 'jqGrid' ,
50
- 'jQueryUi' ,
51
28
'EmployeeAdmin'
52
29
] ,
53
30
54
31
function
55
32
(
56
33
puremvc ,
57
- jqGridLocale ,
58
- jqGrid ,
59
- jQueryUi ,
60
34
EmployeeAdmin
61
35
)
62
36
{
63
- //Wait for dom ready before setting up the application.
37
+ //Wait for dom to be ready before setting up the application.
64
38
jQuery ( function ( )
65
39
{
66
40
var applicationFacade /*ApplicationFacade*/ = EmployeeAdmin . ApplicationFacade . getInstance ( ) ;
You can’t perform that action at this time.
0 commit comments