Permalink
Browse files

sort term implementation for search type channels

  • Loading branch information...
1 parent c4f95f9 commit 8e45c5a64aba6f520f0513e75b5133fce57dce59 @octatone committed Aug 19, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 js/tv.js
View
@@ -756,11 +756,12 @@ function formatFeedURI(channel_obj){
sortOption = '&t=' + sorting[1];
}
- switch(channel_obj.type){
- case 'search':
+ if (channel_obj.type === 'search' && sorting.length === 1) {
+
uri = channel_obj.feed + Globals.search_str + '&limit=100';
- break;
- default:
+ }
+ else {
+
uri = channel_obj.feed + sortType + '.json?limit=100' + sortOption;
}

0 comments on commit 8e45c5a

Please sign in to comment.