* VRFS-2010 - profile sees older session/recordings

This commit is contained in:
Seth Call 2014-08-06 16:52:40 -05:00
parent 38c4f4f022
commit 18ac90d624
3 changed files with 7 additions and 6 deletions

View File

@ -550,7 +550,7 @@
$includeType.on('change', search);
}
function initialize(_$parent, _$scroller, _$content, _$noMorefeeds, _$refresh, _$sortFeedBy, _$includeDate, _$includeType) {
function initialize(_$parent, _$scroller, _$content, _$noMorefeeds, _$refresh, _$sortFeedBy, _$includeDate, _$includeType, defaults) {
$screen = _$parent;
$scroller = _$scroller;
$content = _$content;
@ -569,10 +569,11 @@
if($includeDate.length == 0) throw "$includeDate must be specified";
if($includeType.length ==0) throw "$includeType must be specified";
defaults = $.extend({}, {sort: 'date', time_range: 'month', type: 'all'}, defaults)
// set default search criteria
$sortFeedBy.val('date')
$includeDate.val('month')
$includeType.val('all')
$sortFeedBy.val(defaults.date)
$includeDate.val(defaults.time_range)
$includeType.val(defaults.type)
events();
}

View File

@ -561,7 +561,7 @@
}
else {
clearBackendGuard();
logger.debug("network test pass success. data: ", data);
logger.debug("network test pass completed. data: ", data);
if (data.reason == "unreachable") {
// STUN

View File

@ -769,7 +769,7 @@
var $includeType = profileScreen.find('#feed_show');
feed = new context.JK.Feed(app);
feed.initialize(profileScreen, $scroller, $content, $noMoreFeeds, $refresh, $sortFeedBy, $includeDate, $includeType);
feed.initialize(profileScreen, $scroller, $content, $noMoreFeeds, $refresh, $sortFeedBy, $includeDate, $includeType, {time_range: 'all'});
}
function initialize(textMessageDialogInstance) {