Changeset 386
- Timestamp:
- 07/29/12 16:04:45 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/config/docs.json
r382 r386 69 69 }, 70 70 "questions": { 71 "map": "function(doc){ if ( doc.type === 'Question' ) { if ( doc.categories && doc.categories.length > 0 ) { for (var i = 0; i < doc.categories.length; i++) { emit([doc.categories[i],doc.topic || '[No topic]'],1); } } else { emit(['[No category]','[No topic]'],1); } } }",71 "map": "function(doc){ if ( doc.type === 'Question' ) { if ( doc.categories && doc.categories.length > 0 ) { for (var i = 0; i < doc.categories.length; i++) { emit([doc.categories[i],doc.topic || null],1); } } else { emit([null,null],1); } } }", 72 72 "reduce": "function(keys,values) { return sum(values); }" 73 73 }, -
Dev/branches/rest-dojo-ui/client/index.html
r359 r386 13 13 </head> 14 14 <body class="dijitReset claro"> 15 <div class="page" data-dojo-type="dijit.layout. ContentPane" data-dojo-props="region:'center'">15 <div class="page" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center'" style="width: 100%; height: 100%;"> 16 16 <div class="topbar" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"> 17 17 <a href="#!/index"><h1>ResearchTool</h1></a> -
Dev/branches/rest-dojo-ui/client/rft/pages/survey.js
r384 r386 60 60 this.questionList = new QuestionListView({ 61 61 region: 'center' 62 } ).placeAt(this.surveyListViewNode);62 },this.surveyListViewNode); 63 63 this.questionList.startup(); 64 64 }, -
Dev/branches/rest-dojo-ui/client/rft/ui/TabbedQuestionBrowser.js
r384 r386 20 20 _busyCount: 0, 21 21 constructor: function(){ 22 this.inherited(arguments); 22 23 this._dataMap = {}; 23 24 }, 24 25 startup: function() { 26 this.inherited(arguments); 25 27 this._busyWidget = new Standby({ 26 28 target: this.domNode, … … 40 42 var categoryTab = new ContentPane({ 41 43 __category: category, 42 title: category+" ("+count+")"44 title: (category || '[No category]')+" ("+count+")" 43 45 }); 44 46 categoryTab.startup(); … … 68 70 __category: category, 69 71 __topic: topic, 70 title: topic+" ("+count+")",72 title: (topic || '[No topic]')+" ("+count+")", 71 73 selectedActions: this.selectedActions, 72 74 itemActions: this.itemActions -
Dev/branches/rest-dojo-ui/client/rft/ui/_Page.js
r367 r386 1 define(['dojo/_base/declare','dojo/_base/lang','dojo/parser','dojo/query', 2 'dojo/dom-attr','dijit','dijit/_WidgetBase'], 3 function(declare,lang,parser,query,attr,dijit,_WidgetBase){ 4 return declare('rft.ui._Page',[_WidgetBase],{ 1 define([ 2 'dojo/_base/declare', 3 'dojo/_base/lang', 4 'dojo/dom-attr', 5 'dojo/parser', 6 'dojo/query', 7 'dijit/layout/ContentPane', 8 'dijit/registry' 9 ],function(declare,lang,attr,parser,query,ContentPane,registry){ 10 return declare('rft.ui._Page',[ContentPane],{ 5 11 startup: function() { 6 12 this.inherited(arguments); … … 11 17 query('*[data-rft-attach-point]'/*, this.domNode*/).forEach(lang.hitch(this,function(node){ 12 18 var point = attr.get(node,'data-rft-attach-point'); 13 var widget = dijit.byId(attr.get(node,'id'));19 var widget = registry.byId(attr.get(node,'id')); 14 20 this[point] = widget || node; 15 21 })); … … 18 24 var eventName = event[0]; 19 25 var eventHandler = event[1]; 20 var widget = dijit.byId(attr.get(node,'id'));26 var widget = registry.byId(attr.get(node,'id')); 21 27 if ( widget ) { 22 28 this.connect(widget,eventName,lang.hitch(this,eventHandler)); … … 36 42 /** Event fired before leaving the page. Return false to prevent */ 37 43 onLeave: function(){ 38 dijit.findWidgets(this.domNode).forEach(function(w){44 registry.findWidgets(this.domNode).forEach(function(w){ 39 45 w.destroyRecursive(false); 40 46 });
Note: See TracChangeset
for help on using the changeset viewer.