Changeset 399 for Dev/branches/rest-dojo-ui/client/rft/run.js
- Timestamp:
- 08/15/12 18:30:58 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui
- Property svn:ignore
-
old new 1 1 nbproject 2 .project
-
- Property svn:ignore
-
Dev/branches/rest-dojo-ui/client/rft/run.js
r389 r399 1 1 require([ 2 // functions required for run3 2 'dojo/_base/connect', 4 3 'dojo/_base/window', … … 8 7 'rft/content', 9 8 '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', 9 'rft/indexContent', 10 'rft/stddeps', 11 'dojo/domReady!' 12 ],function(connect,win,dom,parser,auth,content,LoginDialog) { 13 parser.parse(); 14 content.init(); 33 15 34 'dojox/grid/DataGrid', 16 var login = new LoginDialog().placeAt(win.body()); 17 login.startup(); 35 18 36 'rft/ui/LineWithActionsWidget', 37 'rft/ui/MainMenu', 38 'rft/ui/MenuBarLink', 39 'rft/ui/MenuLink', 40 'rft/ui/Notifications', 41 'rft/ui/ObjectBox', 42 'rft/ui/QuestionWidget', 43 'rft/ui/Selector', 44 'rft/ui/TitleGroup', 45 'rft/ui/lists/AccountListView', 46 'rft/ui/lists/List', 47 'rft/ui/lists/OrderedList', 48 49 // pages -> load dynamically? 50 'rft/pages/index', 51 'rft/pages/questions', 52 'rft/pages/question', 53 'rft/pages/session', 54 'rft/pages/sessions', 55 '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 19 auth.restore() 20 .then(function(){ 21 content.initial(); 22 },function(){ 23 login.show(); 75 24 }); 76 25 77 function goToPage(page) { 78 throw "Obsolete navigation to "+page; 79 } 26 connect.connect(dom.byId('loginMenu'),'click',function(){ 27 login.show(); 28 }); 29 30 });
Note: See TracChangeset
for help on using the changeset viewer.