Debian Codegraph @

dojox/app/tests/swapViewTestApp/layoutApp.js

raw symbols SCIP
1 require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/text!./config.json", "dojo/sniff"],
2 function(win, Application, jsonRef, config, has){
3 win.global.modelApp = {};
4 modelApp.names = {
5 identifier: "id",
6 items: [{
7 "id": "1",
8 "Serial": "360324",
9 "First": "John",
10 "Last": "Doe",
11 "Email": "[email protected]",
12 "ShipTo": {
13 "Street": "123 Valley Rd",
14 "City": "Katonah",
15 "State": "NY",
16 "Zip": "10536"
17 },
18 "BillTo": {
19 "Street": "17 Skyline Dr",
20 "City": "Hawthorne",
21 "State": "NY",
22 "Zip": "10532"
23 }
24 }]
25 };
26 modelApp.repeatData = [{
27 "First": "Chad",
28 "Last": "Chapman",
29 "Location": "CA",
30 "Office": "1278",
31 "Email": "[email protected]",
32 "Tel": "408-764-8237",
33 "Fax": "408-764-8228"
34 }, {
35 "First": "Irene",
36 "Last": "Ira",
37 "Location": "NJ",
38 "Office": "F09",
39 "Email": "[email protected]",
40 "Tel": "514-764-6532",
41 "Fax": "514-764-7300"
42 }, {
43 "First": "John",
44 "Last": "Jacklin",
45 "Location": "CA",
46 "Office": "6701",
47 "Email": "[email protected]",
48 "Tel": "408-764-1234",
49 "Fax": "408-764-4321"
50 }];
51 var cfg = jsonRef.fromJson(config);
52 has.add("ie9orLess", has("ie") && (has("ie") <= 9));
53 Application(cfg);
54
55 });