Browse Source

Minor - update fixes from ofaj_dev

- Disable recenter
- Fix forum fold config
Julio Montoya 6 years ago
parent
commit
c1fa431d0c
2 changed files with 6 additions and 5 deletions
  1. 1 1
      main/template/default/forum/list.tpl
  2. 5 4
      main/template/default/social/map.tpl

+ 1 - 1
main/template/default/forum/list.tpl

@@ -146,7 +146,7 @@
 
             <div class="category-forum {{ category_language }}" id="category_{{ item.id }}">
             {% if fold_forum_categories %}
-                {{ display.collapse('category_' ~ item.id, panel_title, panel_content, false, 'false', item.tools, panel_icon ) }}
+                {{ display.collapse('category_' ~ item.id, panel_title, panel_content, false, fold_forum_categories, item.tools, panel_icon ) }}
             {% else %}
                 {{ display.panel(panel_title, panel_content) }}
             {% endif %}

+ 5 - 4
main/template/default/social/map.tpl

@@ -6,8 +6,8 @@
 function start()
 {
     var options = {
-        center: new google.maps.LatLng(54.526, 15.255), // "Europe center"
-        zoom: 4,
+        center: new google.maps.LatLng(45.526, 6.255), // "Europe center"
+        zoom: 5,
         mapTypeId: google.maps.MapTypeId.ROADMAP
     };
 
@@ -19,7 +19,6 @@ function start()
     var imageCity = {
         url: '{{ image_city }}'
     }
-
     var stageCity = {
         url:'{{ image_stage }}'
     }
@@ -62,12 +61,14 @@ function start()
         });
 
         // Auto-boxing
+
         if (markers.length) {
             var bounds = new google.maps.LatLngBounds();
             for (var i = 0; i < markers.length; ++i) {
                 bounds.extend(markers[i].position);
             }
-            map.fitBounds(bounds);
+            // Disable re center of map to another location based in other points in the map
+            //map.fitBounds(bounds);
         }
 
         // window when clicking