Changeset 416 for Dev/branches/rest-dojo-ui/client/rft/pages/session.js
- Timestamp:
- 12/04/12 17:36:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/session.js
r410 r416 22 22 this.inherited(arguments); 23 23 if ( this.sessionId ) { 24 this._loadSession(); 25 this._setupAutoComplete(); 26 } else { 27 throw "No valid uid or session passed!"; 28 } 29 }, 30 _loadSession: function() { 31 if ( this.sessionId === "new" ) { 32 this.session = { 33 type: 'SessionTemplate' 34 }; 35 } else { 24 36 Deferred.when(store.get(this.sessionId)) 25 37 .then(lang.hitch(this,function(obj){ … … 28 40 this._refresh(); 29 41 })); 30 this._setupAutoComplete();31 } else {32 throw "No valid uid or session passed!";33 42 } 34 43 },
Note: See TracChangeset
for help on using the changeset viewer.