Ignore:
Timestamp:
Nov 4, 2010, 1:42:14 AM (13 years ago)
Author:
grum
Message:

fix bug:2004 - Cache table becomes very huge
fix bug:2005 - Category map is not displayed when a [gmaps] map is inserted in category description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/js/gmapsCategory.js

    r7547 r7616  
    22 * -----------------------------------------------------------------------------
    33 * file: gmapsCategory.js
    4  * file version: 1.1.1
    5  * date: 2010-10-28
     4 * file version: 1.2.0
     5 * date: 2010-11-04
    66 */
    77
     
    426426     'closeclick',
    427427     function () {
    428        $('body').append($('#iGMapsInfoWindowContent'));
     428       //$('body').append($('#iGMapsInfoWindowContent'));
    429429       gmaps.infoWindow.setContent('');
    430430       $('#ciGMIWC_img').unbind();
    431431     }
    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       }
    454432    );
    455433
     
    482460          open: function ()
    483461            {
    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              );
    485484            }
    486485        }
Note: See TracChangeset for help on using the changeset viewer.