Fix direct link to feed
This commit is contained in:
@@ -78,9 +78,8 @@ export default {
|
|||||||
if(sNewBaseMap) this.map.setLayoutProperty(sNewBaseMap, 'visibility', 'visible');
|
if(sNewBaseMap) this.map.setLayoutProperty(sNewBaseMap, 'visibility', 'visible');
|
||||||
},
|
},
|
||||||
currProjectCodeName(sNewCodeName, sOldCodeName) {
|
currProjectCodeName(sNewCodeName, sOldCodeName) {
|
||||||
//console.log('change in currProjectCodeName: '+sNewCodeName);
|
|
||||||
//this.toggleSettingsPanel(false);
|
//this.toggleSettingsPanel(false);
|
||||||
this.$parent.setHash(this.$parent.hash.page, [sNewCodeName]);
|
if(this.$parent.hash.items.length==0) this.$parent.setHash(this.$parent.hash.page, [sNewCodeName]);
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -401,7 +400,7 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
onFeedScroll(oEvent) {
|
onFeedScroll(oEvent) {
|
||||||
//FIXME remvove jquery dependency
|
//FIXME remove jquery dependency
|
||||||
var $Box = $(oEvent.currentTarget);
|
var $Box = $(oEvent.currentTarget);
|
||||||
var $BoxContent = $Box.find('.simplebar-content');
|
var $BoxContent = $Box.find('.simplebar-content');
|
||||||
if(($Box.scrollTop() + $(window).height()) / $BoxContent.height() >= 0.8) this.getNextFeed();
|
if(($Box.scrollTop() + $(window).height()) / $BoxContent.height() >= 0.8) this.getNextFeed();
|
||||||
|
|||||||
Reference in New Issue
Block a user