Changeset 358 for Dev/branches/rest-dojo-ui/client/rft/pages
- Timestamp:
- 07/12/12 14:39:26 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft/pages
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/index.html
r354 r358 42 42 'dojo/query', 43 43 'dijit/registry', 44 'rft/content' 44 'rft/content', 45 'dojo/domReady!' 45 46 ], function(on, query, registry, content){ 47 debugger; 46 48 registry.byId("btnSessionsCreate").on("click", function(){ 47 49 content.goTo("sessions", null); … … 50 52 content.goTo("sessions", null); 51 53 }); 52 54 53 55 registry.byId("btnSurveys").on("click", function(){ 54 56 content.goTo("surveys", null); … … 69 71 70 72 }); 71 </script>73 </script> 72 74 </div> -
Dev/branches/rest-dojo-ui/client/rft/pages/questions.html
r305 r358 1 1 <div data-dojo-type="rft.pages.questions"> 2 2 <h1>Questions</h1> 3 <div data-dojo-type="dijit.form.Button" data-rft-attach-event="onClick:onNewQuestion" >New question</div>3 <div data-dojo-type="dijit.form.Button" data-rft-attach-event="onClick:onNewQuestion" data-dojo-props="baseClass: 'rftLargeButton', iconClass:'rftIcon rftIconQuestion'">New question</div> 4 4 <div data-rft-attach-point="list"> 5 5 </div> -
Dev/branches/rest-dojo-ui/client/rft/pages/survey.js
r355 r358 85 85 }, 86 86 /* Store code */ 87 GetQuestion: function(_id) {87 getQuestion: function(_id) { 88 88 return this.questions.get(_id); 89 89 }, 90 SetQuestion: function(question) {90 setQuestion: function(question) { 91 91 return this.questions.put(question); 92 },93 SyncStore: function() {94 92 }, 95 93 /* Browser code */ -
Dev/branches/rest-dojo-ui/client/rft/pages/surveys.html
r292 r358 1 1 <div data-dojo-type="rft.pages.surveys"> 2 <button data-dojo-type="dijit.form.Button" data-dojo-props="disabled: true" data-rft-attach-point="btnEdit">Edit</button>3 <button data-dojo-type="dijit.form.Button" data-rft-attach-point="btnNew">New</button>4 5 2 <button data-dojo-type="dijit.form.Button" class="blue" data-dojo-props="disabled: true, baseClass: 'rftBlockButton', iconClass: 'rftIcon rftIconEdit'" data-rft-attach-point="btnEdit">Edit</button> 3 <button data-dojo-type="dijit.form.Button" class="blue" data-dojo-props="baseClass: 'rftBlockButton', iconClass: 'rftIcon rftIconPlus'" data-rft-attach-point="btnNew">New</button> 4 <div data-dojo-type="dojox.grid.DataGrid" data-dojo-props="autoWidth:true,autoHeight:true,structure:[{name:'Title',field:'title'}]" 5 data-rft-attach-point="grid"></div> 6 6 </div> -
Dev/branches/rest-dojo-ui/client/rft/pages/surveys.js
r343 r358 17 17 content.goTo('/survey',{uid:store.getIdentity(obj)}); 18 18 })); 19 19 20 20 this.btnNew.on('click',lang.hitch(this,function(){ 21 21 Deferred.when( store.add({type:'Survey',creator:auth.getUser()}) ) … … 33 33 } 34 34 }); 35 35 }); 36 36
Note: See TracChangeset
for help on using the changeset viewer.