Ignore:
Timestamp:
08/06/13 01:48:17 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Quick hack to allow responding despite not being authenticated. Something like tokes need to be added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/model/widgets/TabbedQuestionBrowser.js

    r443 r477  
    7878                    title: (topic || '[No topic]')+" ("+count+")",
    7979                    selectedActions: this.selectedActions,
    80                     itemActions: this.itemActions
     80                    itemActions: this.itemActions,
     81                    itemTitle: this._itemTitle
    8182                }).placeAt(categoryMap._widget.containerNode);
    8283                w.startup();
     
    8788            }
    8889        },
     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        },
    8997        _fillTopicSelector: function(topic,category) {
    9098            var categoryMap = this._dataMap[category];
     
    93101                topicMap._filled = true;
    94102                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);
    102109                })).then(lang.hitch(this,function(){
    103110                    this._done();
Note: See TracChangeset for help on using the changeset viewer.