Skip to content

Commit 424d797

Browse files
committed
* Fixing map issue
1 parent c2f28a7 commit 424d797

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

js/form.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@ jQuery(document).ready(function($) {
1313

1414
flush(); // Remove for pruduction
1515

16-
$(".modal").fancybox({
17-
maxWidth : 500,
18-
maxHeight : 570,
19-
fitToView : false,
20-
width : '70%',
21-
height : '70%',
22-
autoSize : false,
23-
closeClick : false,
24-
openEffect : 'none',
25-
closeEffect : 'none',
26-
padding : 0
27-
});
28-
2916
$.validator.addMethod("notEqual", function(value, element, param) {
3017
return this.optional(element) || value != param;
3118
}, "The pickup and dropoff points cannot be the same");
@@ -346,6 +333,20 @@ jQuery(document).ready(function($) {
346333
}
347334
})
348335

336+
$(".modal").fancybox({
337+
maxWidth : 500,
338+
maxHeight : 600,
339+
fitToView : false,
340+
width : '70%',
341+
height : '80%',
342+
autoSize : true,
343+
closeClick : false,
344+
openEffect : 'none',
345+
closeEffect : 'none',
346+
padding : 0,
347+
hideContentOnClick: false
348+
});
349+
349350
// Ajax handler for all buttons
350351
$(".btn").on("click", function(e){
351352
e.preventDefault();

vbs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function add_scripts() {
7878
wp_enqueue_style( 'fancybox-css', PLUGIN_DIR_URL . 'css/jquery.fancybox.css' );
7979

8080
// Scripts
81-
wp_enqueue_script( 'google-map', 'http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places', true );
81+
wp_enqueue_script( 'google-map', 'http://maps.googleapis.com/maps/api/js?libraries=places', true );
8282
wp_enqueue_script( 'gmaps', PLUGIN_DIR_URL . 'js/gmaps.js', array('jquery','google-map'), '0.4.18', true );
8383
wp_enqueue_script( 'geocomplete', PLUGIN_DIR_URL . 'js/jquery.geocomplete.min.js', array('jquery'), '1.4.0', true );
8484
wp_enqueue_script( 'validate', PLUGIN_DIR_URL . 'js/jquery.validate.min.js', array('jquery'), '1.14.0', true );

0 commit comments

Comments
 (0)