- Timestamp:
- 08/06/13 01:48:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/widgets/TabbedQuestionBrowser.js
r443 r477 78 78 title: (topic || '[No topic]')+" ("+count+")", 79 79 selectedActions: this.selectedActions, 80 itemActions: this.itemActions 80 itemActions: this.itemActions, 81 itemTitle: this._itemTitle 81 82 }).placeAt(categoryMap._widget.containerNode); 82 83 w.startup(); … … 87 88 } 88 89 }, 90 _itemTitle: function(item) { 91 var title = '['+item.code+']'+item.title; 92 if ( this.include === 'all' ) { 93 title += (item.publicationDate?' (published on '+item.publicationDate+')':' (unpublished)'); 94 } 95 return title; 96 }, 89 97 _fillTopicSelector: function(topic,category) { 90 98 var categoryMap = this._dataMap[category]; … … 93 101 topicMap._filled = true; 94 102 this._busy(); 95 store.query(this._query, {reduce:false,include_docs:true,key:[category,topic]}) 96 .forEach(lang.hitch(this,function(value){ 97 var title; 98 if ( this.include === 'all' ) { 99 title = value.title+(value.publicationDate?' (published on '+value.publicationDate+')':' (unpublished)'); 100 } 101 topicMap._widget.addItem(value,title); 103 store.query(this._query, { 104 reduce:false, 105 include_docs:true, 106 key:[category,topic] 107 }).forEach(lang.hitch(this,function(value){ 108 topicMap._widget.addItem(value); 102 109 })).then(lang.hitch(this,function(){ 103 110 this._done();
Note: See TracChangeset
for help on using the changeset viewer.