1
0
Эх сурвалжийг харах

Merge branch 'master' of https://github.com/unaio/una

AntonLV 7 жил өмнө
parent
commit
1cf2918920

+ 12 - 8
modules/boonex/mobile_apps/template/mobile_apps_js.html

@@ -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>