Ignore:
Timestamp:
08/15/12 18:30:58 (13 years ago)
Author:
hendrikvanantwerpen
Message:

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.

Location:
Dev/branches/rest-dojo-ui
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui

    • Property svn:ignore
      •  

        old new  
        11nbproject
         2.project
  • Dev/branches/rest-dojo-ui/client/rft/stddeps.js

    r398 r399  
    1 require([
    2     // functions required for run
    3     'dojo/_base/connect',
    4     'dojo/_base/window',
    5     'dojo/dom',
    6     'dojo/parser',
    7     'rft/auth',
    8     'rft/content',
    9     'rft/ui/LoginDialog',
    10     'dojo/domReady!',
    11    
     1define([
    122    // dijit & rft widgets used declaratively in templates and pages
    133    'dijit/Dialog',
     
    5444    'rft/pages/sessions',
    5545    'rft/pages/surveys',
    56     'rft/pages/survey'
    57     ],
    58     function(connect,win,dom,parser,auth,content,LoginDialog) {
    59         parser.parse();
    60 
    61         var login = new LoginDialog().placeAt(win.body());
    62         login.startup();
    63 
    64         auth.restore()
    65         .then(function(){
    66             content.initial();
    67         },function(){
    68             login.show();
    69         });
    70 
    71         connect.connect(dom.byId('loginMenu'),'click',function(){
    72             login.show();
    73         });
    74 
    75     });
    76 
    77 function goToPage(page) {
    78     throw "Obsolete navigation to "+page;
    79 }
     46    'rft/pages/survey',
     47    'rft/pages/viewSurvey'
     48],function(){});
Note: See TracChangeset for help on using the changeset viewer.