Changeset 358
- Timestamp:
- 07/12/12 14:39:26 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/css/layout.css
r355 r358 11 11 .claro { 12 12 font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif; 13 color: # ffffff;13 color: #000000; 14 14 } 15 15 16 16 /* Headings */ 17 17 .claro h1 { 18 /* Main logo */19 18 float: left; 20 19 clear: left; … … 30 29 .claro h2 { 31 30 /* Content pane title */ 31 color: #ffffff; 32 32 font-size: 22px; 33 33 line-height: 30px; -
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 -
Dev/branches/rest-dojo-ui/client/rft/ui/Selector.js
r355 r358 72 72 }, 73 73 _toggleDropdown: function() { 74 75 74 var node = this.optionsNode; 76 75 var show = fx.wipeIn({ … … 104 103 }, 105 104 addQuestion: function(questionId) { 106 var question = this.controller. GetQuestion(questionId);105 var question = this.controller.getQuestion(questionId); 107 106 if (question) { 108 107 var w = new LineWithActionsWidget({ … … 121 120 }); 122 121 w.placeAt(this.optionsNode); 123 w.on(" Click", lang.hitch(this, function(){122 w.on("click", lang.hitch(this, function(){ 124 123 this.selectQuestion(questionId); 125 124 this._toggleDropdown(); … … 129 128 }, 130 129 infoFunction: function(selector) { 131 var question = selector.controller. GetQuestion(this.questionId);130 var question = selector.controller.getQuestion(this.questionId); 132 131 console.log(question); 133 132 alert("Some info here!"); … … 142 141 selectQuestion: function(questionId) { 143 142 /* TODO: TEST THOROUGHLY! */ 144 var question = this.controller. GetQuestion(questionId);143 var question = this.controller.getQuestion(questionId); 145 144 if (question) { 146 145 this.currentlySelectedId = questionId; -
Dev/branches/rest-dojo-ui/client/rft/ui/SurveyListView.js
r356 r358 73 73 creatorMethod: function(controller, listView, item, hint) { 74 74 var node, 75 object = controller. GetQuestion(item);75 object = controller.getQuestion(item); 76 76 if (!object) { 77 77 return false; … … 100 100 "Info" : { 101 101 callback: function(){ 102 var question = controller. GetQuestion(item);102 var question = controller.getQuestion(item); 103 103 console.log(question); 104 104 alert("info goes here yo!");
Note: See TracChangeset
for help on using the changeset viewer.