#307864 reported by chasz: Change mousewheel.js OFF by default to fix some warnings.
authorBrandon Bergren
Tue, 30 Sep 2008 20:21:24 +0000 (20:21 +0000)
committerBrandon Bergren
Tue, 30 Sep 2008 20:21:24 +0000 (20:21 +0000)
gmap.module
gmap_settings_ui.inc

index 2dd36ef..776679d 100644 (file)
@@ -83,7 +83,7 @@ function gmap_gmap($op, &$map) {
       if (isset($map['behavior']['locpick']) && $map['behavior']['locpick']) {
         drupal_add_js($path .'locpick.js');
       }
-      if (variable_get('gmap_load_zoom_plugin', TRUE) && !$map['behavior']['nomousezoom']) {
+      if (variable_get('gmap_load_zoom_plugin', FALSE) && !$map['behavior']['nomousezoom']) {
         drupal_add_js(drupal_get_path('module', 'gmap') .'/thirdparty/mousewheel.js');
       }
       if (!empty($map['markers']) || !empty($map['lines'])) {
index 5123e0f..80a57e2 100644 (file)
@@ -38,7 +38,7 @@ function _gmap_admin_settings() {
   $form['initialization']['gmap_load_zoom_plugin'] = array(
     '#type' => 'checkbox',
     '#title' => t('Enable mousewheel zooming'),
-    '#default_value' => variable_get('gmap_load_zoom_plugin', TRUE),
+    '#default_value' => variable_get('gmap_load_zoom_plugin', FALSE),
     '#description' => t('Enables the mousewheel.js jQuery plugin, which adds the ability to use the mouse wheel to zoom the map.'),
   );
   if (!file_exists(drupal_get_path('module', 'gmap') .'/thirdparty/mousewheel.js')) {