Changeset 4557


Ignore:
Timestamp:
Dec 22, 2009, 6:50:52 PM (15 years ago)
Author:
cljosse
Message:

[Edit_gmaps] update version

Location:
extensions/edit_gmaps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/admin/admin_edit.tpl

    r4555 r4557  
    2121
    2222
    23 <script src="{$PLUGIN_ROOT_URL}/template/windows_13/javascripts/prototype.js" type="text/javascript"></script>
    24 <script src="{$PLUGIN_ROOT_URL}/template/windows_13/javascripts/window.js" type="text/javascript" defer="defer"></script>
    25 <link href="{$PLUGIN_ROOT_URL}/template/windows_13/themes/default.css" rel="stylesheet" type="text/css" />
    26 <link href="{$PLUGIN_ROOT_URL}/template/windows_13/themes/alphacube.css" rel="stylesheet" type="text/css" />
     23<script src="plugins/rv_gmaps/template/windows_13/javascripts/prototype.js" type="text/javascript"></script>
     24
    2725
    2826<style type="text/css">{literal}
     
    176174
    177175  Ma_position=coord;
    178   var echelle=18;
     176  var echelle=18;
     177if ({$lat}=='49' && {$lon}=='3' )   echelle=4;
    179178 
    180179  map.setCenter( coord, echelle);
     
    184183{literal}
    185184  if ( !map.isLoaded() )
    186     map.setCenter( new GLatLng(49,3), 14);
     185    map.setCenter( new GLatLng(49,3), 4);
    187186  try {
    188187    // the overview must be added after setting map center
     
    244243}
    245244
    246 <!--Event.observe(window, 'load', onLoad );-->
    247 <!--Event.observe(window, 'unload', GUnload );-->
     245 Event.observe(window, 'load', onLoad );
     246 Event.observe(window, 'unload', GUnload );
    248247//]-->]>
    249248{/literal}
    250 onLoad();
     249 
    251250</script>
    252251
  • extensions/edit_gmaps/main.inc.php

    r4556 r4557  
    33Version: 1.0.0
    44Description:  Editor for rv gmaps
    5 Plugin URI: http://piwigo.org/ext
     5Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330
    66Author: rvelices cljosse
    77Author URI: http://www.modusoptimus.com/
     
    3535  global $template,$page;
    3636 
    37  if (  !isset($_GET['map'])   )
     37 
     38 if (   isset($_GET['map']) ||   isset($_POST['lat'])  )
    3839{
    39 return ;
     40 $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl'));
     41 $template->parse('cl_conflit');
     42}else{
     43 
    4044}
    41   $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl'));
    42  $template->parse('cl_conflit');
    43  
     45 return ;
    4446}
    4547
Note: See TracChangeset for help on using the changeset viewer.