Quantcast
Channel: Site5 Free Premium WordPress Themes » All Posts
Viewing all articles
Browse latest Browse all 8865

Reply To: Solution for Google Maps Centering Problem

$
0
0

what do u mean with ’91′ ? The Original custom.js of sunrise has 76 rows ..
What error code?

You need to replace this (from row 46):

$(‘.map-toggle’).click( function(event) {
$(this).toggleClass(‘collapsed’);
$(this).find(‘span.show, span.hide’).toggle();
$(‘#map’).slideToggle();
event.preventDefault();

});

with this:

$(‘.map-toggle’).click( function(event) {
$(this).toggleClass(‘collapsed’);
$(this).find(‘span.show, span.hide’).toggle();
m = $(‘#map’);
if(m.css(‘visibility’) == ‘hidden’){
$(‘div.google-map’).css(‘height’,’auto’);
m.css({‘display’:’none’,’visibility’:’visible’});
}
m.slideToggle();
event.preventDefault();
});

  • This reply was modified 1 hour, 23 minutes ago by  Pudelwerfer.
  • This reply was modified 1 hour, 22 minutes ago by  Pudelwerfer.

Viewing all articles
Browse latest Browse all 8865

Trending Articles