source: Dev/branches/rest-dojo-ui/client/rft/viewContent.js @ 400

Last change on this file since 400 was 399, checked in by hendrikvanantwerpen, 13 years ago

Added survey viewer page.

Added view.html page to view surveys. Widgets from the questions are
displayed, no answers are saved yet.

The content module is split for index.html and view.html, so viewers
cannot navigate to other pages. Widgets to pre-load are now seperated
in stddeps.js module and shared between run.js & view.js.

File size: 535 bytes
Line 
1define([
2    'dojo/hash',
3    'dojo/io-query',
4    './content'
5],function(hash,uriQuery,content){
6    return new (function(){
7
8            content.initialImpl = function(path,args) {
9                args = args || {};
10                if ( hash() ) {
11                    var parts = hash().split('!');
12                    if ( parts[1] ) {
13                        args = uriQuery.queryToObject(parts[1]);
14                    }
15                }
16                return content._loadPage('/viewSurvey',args);
17            };
18
19    })();
20});
Note: See TracBrowser for help on using the repository browser.