Changeset 7616 for extensions/GMaps/js/gmapsCategory.js
- Timestamp:
- Nov 4, 2010, 1:42:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/js/gmapsCategory.js
r7547 r7616 2 2 * ----------------------------------------------------------------------------- 3 3 * file: gmapsCategory.js 4 * file version: 1. 1.15 * date: 2010-1 0-284 * file version: 1.2.0 5 * date: 2010-11-04 6 6 */ 7 7 … … 426 426 'closeclick', 427 427 function () { 428 $('body').append($('#iGMapsInfoWindowContent'));428 //$('body').append($('#iGMapsInfoWindowContent')); 429 429 gmaps.infoWindow.setContent(''); 430 430 $('#ciGMIWC_img').unbind(); 431 431 } 432 );433 434 /*435 * initialize map on the server side (call the 'public.maps.init'436 * function)437 */438 $.ajax(439 {440 type: "POST",441 url: "plugins/GMaps/gmaps_ajax.php",442 async: true,443 data: { ajaxfct:"public.maps.init", category:gmaps.categoryId, mapId:'n' },444 success:445 function(msg)446 {447 gmaps.requestId=msg;448 for(var i=0;i<gmaps.maps.length;i++)449 {450 initializeMapViewport('loaded', i);451 }452 }453 }454 432 ); 455 433 … … 482 460 open: function () 483 461 { 484 initializeMapViewport('open', $(this).data('index')); 462 /* 463 * initialize map on the server side (call the 'public.maps.init' 464 * function) 465 */ 466 $.ajax( 467 { 468 type: "POST", 469 url: "plugins/GMaps/gmaps_ajax.php", 470 async: true, 471 data: { ajaxfct:"public.maps.init", category:gmaps.categoryId, mapId:'n' }, 472 success: 473 function(msg) 474 { 475 gmaps.requestId=msg; 476 for(var i=0;i<gmaps.maps.length;i++) 477 { 478 initializeMapViewport('loaded', i); 479 //initializeMapViewport('open', $(this).data('index')); 480 } 481 } 482 } 483 ); 485 484 } 486 485 }
Note: See TracChangeset
for help on using the changeset viewer.