Changeset 364 for Dev/branches/rest-dojo-ui/client/rft/pages/session.js
- Timestamp:
- 07/17/12 16:49:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/session.js
r359 r364 5 5 'rft/store', 6 6 'rft/ui/_Page', 7 'rft/content'], 8 function(declare,lang,event,Deferred,store,_Page,content){ 7 'rft/content', 8 'rft/ui/AccountListView' 9 ], 10 function(declare,lang,event,Deferred,store,_Page,content,AccountListView){ 9 11 return declare('rft.pages.session',[_Page],{ 10 12 session: null, 13 listView: null, 11 14 onVisit: function() { 12 15 if ( this.pageArgs.uid ) { … … 16 19 this._refresh(); 17 20 })); 21 this._setupListView(); 18 22 } else { 19 throw "No valid uid or s urveypassed!";23 throw "No valid uid or session passed!"; 20 24 } 21 25 }, … … 26 30 this.titleNode.innerHTML = this.session.title || ''; 27 31 this.propertiesForm.set('value',this.session); 32 }, 33 onInvite: function() { 34 this._addAccount({ title : this.emailBox.get('value') }); 35 this.emailBox.set('value', ""); 28 36 }, 29 37 onSave: function(evt) { … … 41 49 content.goTo('sessions'); 42 50 return false; 51 }, 52 _addAccount: function(item) { 53 this.listView.insertItem(item); 54 }, 55 _setupListView: function() { 56 this.listView = new AccountListView( { 57 controller: this 58 }).placeAt(this.listViewNode); 59 this.listView.startup(); 43 60 } 61 44 62 }); 45 63 });
Note: See TracChangeset
for help on using the changeset viewer.