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

Last change on this file since 382 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
RevLine 
[263]1require([
[288]2    // functions required for run
[382]3    'dojo/_base/connect',
4    'dojo/_base/window',
5    'dojo/dom',
6    'dojo/parser',
7    'rft/auth',
8    'rft/content',
9    'rft/ui/LoginDialog',
[288]10    'dojo/domReady!',
11   
[382]12    // dijit & rft widgets used declaratively in templates and pages
[379]13    'dijit/Dialog',
[382]14    'dijit/DropDownMenu',
[347]15    'dijit/InlineEditBox',
[281]16    'dijit/MenuBar',
17    'dijit/MenuBarItem',
18    'dijit/PopupMenuBarItem',
19    'dijit/TitlePane',
[382]20    'dijit/layout/AccordionContainer',
[347]21    'dijit/layout/BorderContainer',
[281]22    'dijit/layout/ContentPane',
23    'dijit/layout/TabContainer',
[382]24    'dijit/form/Button',
25    'dijit/form/ComboBox',
[347]26    'dijit/form/DateTextBox',
[263]27    'dijit/form/Form',
[382]28    'dijit/form/NumberSpinner',
29    'dijit/form/Select',
30    'dijit/form/SimpleTextarea',
31    'dijit/form/Textarea',
[274]32    'dijit/form/TextBox',
[263]33    'dojox/grid/DataGrid',
[281]34    'dojox/widget/TitleGroup',
[382]35    'rft/ui/AccountListView',
36    'rft/ui/LineWithActionsWidget',
[374]37    'rft/ui/List',
[311]38    'rft/ui/MainMenu',
[263]39    'rft/ui/MenuBarLink',
[274]40    'rft/ui/MenuLink',
[311]41    'rft/ui/Notifications',
[350]42    'rft/ui/ObjectBox',
[382]43    'rft/ui/OrderedList',
[281]44    'rft/ui/QuestionWidget',
[350]45    'rft/ui/Selector',
[281]46    'rft/ui/TitleGroup',
[382]47
[288]48    // pages -> load dynamically?
[359]49    'rft/pages/index',
[292]50    'rft/pages/questions',
[366]51    'rft/pages/question',
[359]52    'rft/pages/session',
[350]53    'rft/pages/sessions',
[292]54    'rft/pages/surveys',
[366]55    'rft/pages/survey'
[292]56    ],
[382]57    function(connect,win,dom,parser,auth,content,LoginDialog) {
[260]58        parser.parse();
59
[263]60        var login = new LoginDialog().placeAt(win.body());
[260]61        login.startup();
62
63        auth.restore()
[263]64        .then(function(){
[260]65            content.initial();
66        },function(){
67            login.show();
68        });
69
[274]70        connect.connect(dom.byId('loginMenu'),'click',function(){
[260]71            login.show();
72        });
[274]73
[347]74    });
75
76function goToPage(page) {
77    throw "Obsolete navigation to "+page;
[350]78}
Note: See TracBrowser for help on using the repository browser.