Last change
on this file since 419 was
419,
checked in by hendrikvanantwerpen, 12 years ago
|
Also update module ids and include README with file layout description.
|
File size:
664 bytes
|
Rev | Line | |
---|
[263] | 1 | require([ |
---|
[410] | 2 | 'dojo/hash', |
---|
[382] | 3 | 'dojo/parser', |
---|
[419] | 4 | 'qed/app/Content', |
---|
| 5 | 'qed/app/Page', |
---|
| 6 | 'qed/pages/viewSurvey', |
---|
[410] | 7 | 'dojo/domReady!', |
---|
[419] | 8 | 'qed/stddeps' |
---|
[410] | 9 | ],function(hash,parser,Content,Page,viewSurvey) { |
---|
[399] | 10 | parser.parse(); |
---|
[410] | 11 | Content.startup(); |
---|
| 12 | |
---|
| 13 | var match = /^!\/(\w+)$/g.exec(hash()); |
---|
| 14 | if ( !match ) { |
---|
| 15 | Content.set(new Page({ |
---|
| 16 | templateString: "<div>Something is wrong with the URL, don't know what survey to show you. Sorry.</div>" |
---|
| 17 | })); |
---|
| 18 | return; |
---|
| 19 | } |
---|
| 20 | var surveyId = match[1]; |
---|
| 21 | |
---|
[407] | 22 | // read options from hash/url |
---|
[410] | 23 | // |
---|
[407] | 24 | // authenticate |
---|
[410] | 25 | |
---|
| 26 | Content.set(new viewSurvey({ |
---|
| 27 | surveyId: surveyId |
---|
| 28 | })); |
---|
[407] | 29 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.