Skip to content

Commit

Permalink
Load hashTag queries in the right drawer using the search widget's ha…
Browse files Browse the repository at this point in the history
…shTag queries array that is expanded after customizations are loaded.
  • Loading branch information
Jason Best committed Oct 5, 2013
1 parent b529a42 commit 82f1f81
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Views/_RightDrawerListMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,26 +117,26 @@ define('Mobile/SalesLogix/Views/_RightDrawerListMixin', [
};
},
createRightDrawerLayout: function() {
var hashTagsSection, hashTag, kpiSection, layout, prefs;
var hashTagsSection, hashTag, kpiSection, layout, prefs, i, len;
layout = [];

hashTagsSection = {
id: 'actions',
children: []
};

if (this.hashTagQueries) {
for (hashTag in this.hashTagQueries) {
if (this.hashTagQueries.hasOwnProperty(hashTag)) {
hashTagsSection.children.push({
'name': hashTag,
'action': 'hashTagClicked',
'title': this.hashTagQueriesText[hashTag] || hashTag,
'dataProps': {
'hashtag': this.hashTagQueriesText[hashTag] || hashTag
}
});
}
if (this.searchWidget && this.searchWidget.hashTagQueries) {
len = this.searchWidget.hashTagQueries.length;
for (i = 0; i < len; i++) {
hashTag = this.searchWidget.hashTagQueries[i];
hashTagsSection.children.push({
'name': hashTag.key,
'action': 'hashTagClicked',
'title': hashTag.tag,
'dataProps': {
'hashtag': hashTag.tag
}
});
}
}

Expand Down

0 comments on commit 82f1f81

Please sign in to comment.