Changeset 487 for Dev/trunk/src/client/qed-client/pages/sessions.js
- Timestamp:
- 03/05/14 22:44:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/sessions.js
r443 r487 1 1 define([ 2 'dojo/_base/declare',2 /*'dojo/_base/declare', 3 3 'dojo/_base/lang', 4 4 'dojo/date/stamp', … … 7 7 '../app/Page', 8 8 '../widgets/ObjectBox', 9 'dojo/text!./templates/sessions.html' 9 'dojo/text!./templates/sessions.html'*/ 10 10 ],function(declare,lang,dateStamp,store,Router,Page,ObjectBox,template){ 11 return declare([Page],{11 /*return declare([Page],{ 12 12 templateString: template, 13 13 templateActions: null, … … 18 18 this.templateActions = { 19 19 "Edit": function(obj){ 20 Router.go('/session/'+ store.getIdentity(obj));20 Router.go('/session/'+obj.get('id')); 21 21 }, 22 22 "Delete": lang.hitch(this,function(obj){ 23 store.remove(store.getIdentity(obj),store.getRevision(obj))23 obj.remove() 24 24 .then(lang.hitch(this,function(){ 25 25 this._refresh(); … … 30 30 this.sessionActions = { 31 31 "Facilitate": function(obj){ 32 Router.go('run',{uid: store.getIdentity(obj)});32 Router.go('run',{uid: obj.get('id')}); 33 33 }, 34 34 "Delete": lang.hitch(this,function(obj){ 35 store.remove(store.getIdentity(obj),store.getRevision(obj))35 obj.remove() 36 36 .then(lang.hitch(this,function(){ 37 37 this._refresh(); … … 48 48 }, 49 49 _refreshByType: function(type,container,actions) { 50 // FIXME 50 51 store.query("_design/default/_view/by_type",{key:type}) 51 52 .forEach(lang.hitch(this,function(obj){ … … 61 62 }, 62 63 _publishSession: function(sessionTemplate) { 64 // FIXME 63 65 var session = lang.clone(sessionTemplate); 64 66 delete session[store.idProperty]; … … 73 75 })); 74 76 } 75 }); 77 });*/ 76 78 });
Note: See TracChangeset
for help on using the changeset viewer.