|
|
@@ -65,13 +65,17 @@
|
|
|
|
|
|
// pull to refresh
|
|
|
$(document).ready(function () {
|
|
|
- PullToRefresh.init({
|
|
|
- instructionsPullToRefresh: '__txt_pull_to_refresh__',
|
|
|
- instructionsReleaseToRefresh: '__txt_release_to_refresh__',
|
|
|
- instructionsRefreshing: '__txt_refreshing__',
|
|
|
- onRefresh() {
|
|
|
- window.location.reload();
|
|
|
- },
|
|
|
- });
|
|
|
+ if ($('.bx-messenger-block-lots').length)
|
|
|
+ glBxMobileDisablePullToRefresh = true;
|
|
|
+ if ('undefined' === typeof glBxMobileDisablePullToRefresh || false === glBxMobileDisablePullToRefresh) {
|
|
|
+ PullToRefresh.init({
|
|
|
+ instructionsPullToRefresh: '__txt_pull_to_refresh__',
|
|
|
+ instructionsReleaseToRefresh: '__txt_release_to_refresh__',
|
|
|
+ instructionsRefreshing: '__txt_refreshing__',
|
|
|
+ onRefresh() {
|
|
|
+ window.location.reload();
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|