Commit 88f1495a authored by Thierry BUGEAT's avatar Thierry BUGEAT

#58 Prevents access to small news in offline mode.

parent b0febe77
......@@ -2734,7 +2734,7 @@
_previousTsMs = _keys[_i];
_content = (sortedEntries[_previousTsMs]._myFeedInformations.title + ' ' + sortedEntries[_previousTsMs].title + ' ' + sortedEntries[_previousTsMs].contentSnippet).toLowerCase();
if (((params.entries.displaySmallEntries == false) && (my.isSmallEntry(sortedEntries[_keys[_i]])))
//|| ((params.entries.displaySmallEntries == true) && (my.isSmallEntry(sortedEntries[_keys[_i]])) && (liveValues.network.status == 'offline'))
|| ((params.entries.displaySmallEntries == true) && (my.isSmallEntry(sortedEntries[_keys[_i]])) && (liveValues.network.status == 'offline'))
|| (_inputSearchEntries !== "" && liveValues['entries']['search']['visible'] && (_content.indexOf(_inputSearchEntries.toLowerCase()) == -1))
){
continue;
......@@ -2751,7 +2751,7 @@
_nextTsMs = _keys[_j];
_content = (sortedEntries[_nextTsMs]._myFeedInformations.title + ' ' + sortedEntries[_nextTsMs].title + ' ' + sortedEntries[_nextTsMs].contentSnippet).toLowerCase();
if (((params.entries.displaySmallEntries == false) && (my.isSmallEntry(sortedEntries[_keys[_j]])))
//|| ((params.entries.displaySmallEntries == true) && (my.isSmallEntry(sortedEntries[_keys[_j]])) && (liveValues.network.status == 'offline'))
|| ((params.entries.displaySmallEntries == true) && (my.isSmallEntry(sortedEntries[_keys[_j]])) && (liveValues.network.status == 'offline'))
|| (_inputSearchEntries !== "" && liveValues['entries']['search']['visible'] && (_content.indexOf(_inputSearchEntries.toLowerCase()) == -1))
){
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment