Changeset 410 for Dev/branches/rest-dojo-ui/client/rft/view.js
- Timestamp:
- 09/07/12 16:59:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/view.js
r407 r410 1 1 require([ 2 'dojo/hash', 2 3 'dojo/parser', 3 'rft/stddeps', 4 'dojo/domReady!' 5 ],function(parser) { 4 'rft/app/Content', 5 'rft/app/Page', 6 'rft/pages/viewSurvey', 7 'dojo/domReady!', 8 'rft/stddeps' 9 ],function(hash,parser,Content,Page,viewSurvey) { 6 10 parser.parse(); 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 7 22 // read options from hash/url 23 // 8 24 // authenticate 9 // set content 10 // go for it 25 26 Content.set(new viewSurvey({ 27 surveyId: surveyId 28 })); 11 29 });
Note: See TracChangeset
for help on using the changeset viewer.