Changeset 4558


Ignore:
Timestamp:
Dec 23, 2009, 8:32:13 AM (11 years ago)
Author:
cljosse
Message:

[Edit_gmaps] Fix Bug display in admin

Location:
extensions/edit_gmaps
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/admin/admin.php

    r4545 r4558  
    99else
    1010  $page['tab'] = $_GET['tab'];
    11 
     11  $page['tab'] =   'edit';
    1212$my_base_url = get_admin_plugin_menu_link(__FILE__);
    1313
  • extensions/edit_gmaps/admin/admin_edit.tpl

    r4557 r4558  
    1919{if $lat}
    2020<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={$GMAPS_API_KEY}&amp;hl={$lang_info.code}" type="text/javascript"></script>
    21 
    22 
     21 
    2322<script src="plugins/rv_gmaps/template/windows_13/javascripts/prototype.js" type="text/javascript"></script>
    2423
     
    243242}
    244243
     244function $(element) {
     245  if (arguments.length > 1) {
     246    for (var i = 0, elements = [], length = arguments.length; i < length; i++)
     247      elements.push($(arguments[i]));
     248    return elements;
     249  }
     250  if (Object.isString(element))
     251    element = document.getElementById(element);
     252  return Element.extend(element);
     253}
     254
    245255 Event.observe(window, 'load', onLoad );
    246256 Event.observe(window, 'unload', GUnload );
  • extensions/edit_gmaps/main.inc.php

    r4557 r4558  
    11<?php /*
    22Plugin Name: Edit Maps&Earth
    3 Version: 1.0.0
    4 Description:  Editor for rv gmaps
     3Version: 1.0.1
     4Description:  Editor for rv gmaps 
    55Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330
    66Author: rvelices cljosse
    7 Author URI: http://www.modusoptimus.com/
     7Author URI: http://cl.josse.free.fr/
    88*/
    9 define( 'ed_rvm_PLUGIN_VERSION', '2.0.c');
     9
     10define( 'ed_rvm_PLUGIN_VERSION', '1.0.1');
    1011if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1112add_event_handler('get_admin_plugin_menu_links', 'ed_rvm_plugin_admin_menu' );
     
    2021        add_event_handler('invalidate_user_cache', 'rvm_invalidate_cache' );
    2122
    22  $_GET['tab'] = 'edit';
    23  
    2423        array_push($menu,
    2524                        array(
     25                       
    2626                                'NAME' => 'EDIT Maps & Earth',
    2727                                'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin.php')
     
    3636 
    3737 
    38  if (   isset($_GET['map']) ||   isset($_POST['lat'])  )
     38 if (   isset($_GET['map'])   )
    3939{
     40
    4041 $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl'));
    4142 $template->parse('cl_conflit');
  • extensions/edit_gmaps/template/cl_conflit.tpl

    r4556 r4558  
    1 <!--- My Conflit --->
     1<!--- My Conflit $ROOT_URL  --->
    22
    33{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
     
    1111{/html_head}
    1212
    13 <!--- << fly conflit --->
     13<!--- << My conflit --->
Note: See TracChangeset for help on using the changeset viewer.