source: Dev/branches/rest-dojo-ui/client/rft/run.js @ 387

Last change on this file since 387 was 382, checked in by hendrikvanantwerpen, 13 years ago
  • Added description to survey properties form.
  • Added crude loading indicator to TabbedQuestionWidget?.
  • Organized run.js: dependencies in alpha order and only declaratively used widgets, removed other dependencies, they should be in the modules where they are used.
  • ElasticReadStore? and ElasticSearchFilteringSelect? was a mix of old dojo.declare/dojo.require and new AMD style. Changed it completely to AMD style (benefits builds later as well).
  • Changed questions view so questions without topics/categories show up as well in the view.
File size: 1.9 KB
Line 
1require([
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   
12    // dijit & rft widgets used declaratively in templates and pages
13    'dijit/Dialog',
14    'dijit/DropDownMenu',
15    'dijit/InlineEditBox',
16    'dijit/MenuBar',
17    'dijit/MenuBarItem',
18    'dijit/PopupMenuBarItem',
19    'dijit/TitlePane',
20    'dijit/layout/AccordionContainer',
21    'dijit/layout/BorderContainer',
22    'dijit/layout/ContentPane',
23    'dijit/layout/TabContainer',
24    'dijit/form/Button',
25    'dijit/form/ComboBox',
26    'dijit/form/DateTextBox',
27    'dijit/form/Form',
28    'dijit/form/NumberSpinner',
29    'dijit/form/Select',
30    'dijit/form/SimpleTextarea',
31    'dijit/form/Textarea',
32    'dijit/form/TextBox',
33    'dojox/grid/DataGrid',
34    'dojox/widget/TitleGroup',
35    'rft/ui/AccountListView',
36    'rft/ui/LineWithActionsWidget',
37    'rft/ui/List',
38    'rft/ui/MainMenu',
39    'rft/ui/MenuBarLink',
40    'rft/ui/MenuLink',
41    'rft/ui/Notifications',
42    'rft/ui/ObjectBox',
43    'rft/ui/OrderedList',
44    'rft/ui/QuestionWidget',
45    'rft/ui/Selector',
46    'rft/ui/TitleGroup',
47
48    // pages -> load dynamically?
49    'rft/pages/index',
50    'rft/pages/questions',
51    'rft/pages/question',
52    'rft/pages/session',
53    'rft/pages/sessions',
54    'rft/pages/surveys',
55    'rft/pages/survey'
56    ],
57    function(connect,win,dom,parser,auth,content,LoginDialog) {
58        parser.parse();
59
60        var login = new LoginDialog().placeAt(win.body());
61        login.startup();
62
63        auth.restore()
64        .then(function(){
65            content.initial();
66        },function(){
67            login.show();
68        });
69
70        connect.connect(dom.byId('loginMenu'),'click',function(){
71            login.show();
72        });
73
74    });
75
76function goToPage(page) {
77    throw "Obsolete navigation to "+page;
78}
Note: See TracBrowser for help on using the repository browser.