Ignore:
Timestamp:
Sep 5, 2012, 6:15:07 PM (12 years ago)
Author:
cljosse
Message:

[extensions] edit_gmaps compatibility 2.4

Location:
extensions/edit_gmaps
Files:
1 added
1 deleted
9 edited

Legend:

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

    r9445 r17761  
    22if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    33include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
    4 
    54
    65$template->set_filename('plugin_admin_content', dirname(__FILE__).'/admin.tpl');
     
    1413
    1514$tabsheet = new tabsheet();
    16 $tabsheet->add( 'edit', 'Edit', add_url_params( $my_base_url, array('tab'=>'edit') ) );
    17 //$tabsheet->add( 'edit_meta', 'Edit_meta', add_url_params( $my_base_url, array('tab'=>'edit_meta') ) );
     15$tabsheet->add( 'edit', 'edit', add_url_params( $my_base_url, array('tab'=>'edit') ) );
    1816$tabsheet->select($page['tab']);
    1917$tabsheet->assign();
    20 
    2118$my_base_url = $tabsheet->sheets[ $page['tab'] ]['url'];
    22 $template->set_filename( 'tab_data', dirname(__FILE__).'/admin_'.$page['tab'].'.tpl' );
    23 include_once( dirname(__FILE__).'/admin_'.$page['tab'].'.php');
    24 
     19$ntpl=dirname(__FILE__).'\\admin_'.$page['tab'].'.tpl' ;
     20$template->set_filename( 'tab_data', $ntpl );
     21include_once( dirname(__FILE__).'/admin_'.$page['tab'].'.php');
    2522$template->assign_var_from_handle( 'TAB_DATA', 'tab_data');
    2623$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
    27 
    2824?>
  • extensions/edit_gmaps/admin/admin_edit.php

    r12126 r17761  
    55$admin_url = PHPWG_ROOT_PATH.'admin.php';
    66
    7 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    87
    98/***********************************************************************************/
     
    2524$icon_path = 'themes/default/icon/help.png';
    2625$path_js=  'themes/default/js/' ;
     26 
     27$global_tpl=realpath(PHPWG_ROOT_PATH).'\\admin\\themes\\default\\template\\batch_manager_global.tpl' ;
     28
     29$template->assign(
     30    array(  'EDIT_CL_PATH' => EDIT_CL_PATH,
     31            'path_js' => $path_js,
     32            'VERSION'=> $version,
     33            'EDIT_CL_PATH_ABS' => dirname(__FILE__).'/',
     34            'GLOBAL_TPL' => $global_tpl
     35          )
     36  );
     37
    2738/****************************************************************/
    2839$info_message="" ;
    2940$erreur_message="";
    3041/****************************************************************/
    31 if ( !isset($_GET['cat']) )   $_GET['cat'] = 'caddie';
    32 $_GET['mode'] = 'map';
    33     if (PHPWG_VERSION < 2.2 ) {
    34       include (PHPWG_ROOT_PATH.'admin/element_set.php');
    35     } else {
    36       if (!isset($page['title'])) $page['title']="";
    37       include (PHPWG_ROOT_PATH.'admin/batch_manager.php');
    38     $template->concat('TABSHEET_TITLE', ' '.l10n_dec('%d image', '%d images', count($page['cat_elements_id'])).' - '.$page['title']);
    39   }
     42if ( !isset($_GET['mode']) ) $_GET['mode'] = 'global';
     43if(!isset($_GET['cat'])) $_GET['cat']="" ;
     44if(isset($_POST['filter_prefilter'])){
     45  $_GET['cat'] = $_POST['filter_prefilter'];
     46}
     47
     48if (!isset($page['title'])) $page['title']="";
     49if(!isset($_POST['selectAction'])) $_POST['selectAction']="" ;
     50
     51//$info_message .= cl_edit_functions::Memo_Vars($_POST);
     52check_input_parameter('selection', $_POST, true, PATTERN_ID);
     53
     54include (PHPWG_ROOT_PATH.'admin/batch_manager.php');
     55
     56if(isset($page['cat_elements_id']))
     57    $template->concat('TABSHEET_TITLE', ' '.l10n_dec('%d image', '%d images', count($page['cat_elements_id'])).' - '.$page['title']); 
     58
     59 
     60    $tabsheet = new tabsheet();
     61    $tabsheet->assign();
     62     
     63 // $current  =  $template->get_template_vars('TAB_DATA');
     64// prefilters,tags
     65
     66//  $erreur_message .= cl_edit_functions::Memo_Vars( $current);
     67
    4068//===============================================================
    4169$collection = array();
    42 if(!isset($_POST['target'])) $_POST['target']="";
    43 
    44   switch ($_POST['target']){
    45     case 'all' :
    46       $collection = $page['cat_elements_id'];
    47     break;
    48     case 'selection' :
    49       if (!isset($_POST['selection']) or count($_POST['selection']) == 0)
    50         array_push($page['errors'], l10n('Select at least one photo'));
    51       else
     70  if(isset($_POST['selection']))
    5271        $collection = $_POST['selection'];
    53     break;
    54   }
    55 if (isset($_POST['selection'])){}
    5672//===============================================================       
    5773  $images=array();   
    58 if (!empty($_GET['display']))
    59 {
     74if (!empty($_GET['display'])){
    6075  if ('all' == $_GET['display'])
    6176    $page['nb_images'] = count($page['cat_elements_id']);
     
    6681  $page['nb_images'] = 20;
    6782
    68 if ( !empty($page['cat_elements_id']) )
    69 {
     83if ( !empty($page['cat_elements_id']) ){
    7084  $query='
    71 SELECT id,tn_ext,name,path,file,lat,lon,alt FROM '.IMAGES_TABLE.'
     85SELECT * FROM '.IMAGES_TABLE.'
    7286  WHERE id IN ('.implode(',',$page['cat_elements_id']).')
    7387  '.$conf['order_by'].'
     
    7791  while ( $row=mysql_fetch_assoc($result) )
    7892    $images[] = $row;
     93
    7994}
    8095//===============================================================
     
    169184    $_POST['update'] ="ok";
    170185  }
    171 
     186//======================================================================
    172187if ( isset($_POST['submit'])  ) {
    173188  /******** Mise à jour base de données *****/
     
    179194        //===============================================================
    180195       if($lat !="") cl_edit_controler::add_data_base($collection,$lat,$lon,$alt) ;
    181         $_POST['submit'] = l10n('Submit') ;
     196        $_POST['submit'] = l10n('selectAction') ;
    182197            foreach ($collection as $id_0){
    183198          foreach ($images as $image) { 
     
    192207    }
    193208 }
    194 /**************************************/
    195 
    196 $specials_selected = null;
    197 foreach( array('caddie'=>'Caddie', 'recent'=>'Recent photos') as $k => $v){
    198     $link = $admin_url.get_query_string_diff(array('start','cat')).'&amp;cat='.$k;
    199     $template->append(
    200         'specials',
    201         array(
    202             $link => l10n($v),
    203             ),
    204         true
    205         );
    206     if ($k == $_GET['cat']) $specials_selected = $link;
    207 }
    208 
    209 
    210 $template->assign('specials_selected', $specials_selected);
     209
    211210/****************************************/
    212211$query = '
     
    240239//========================================================================
    241240  $v_exif="";
     241 $current = $template->get_template_vars('thumbnails'); 
     242 $j=0;
     243 $thumbnails= array();
    242244foreach ($images as $image){ 
    243  
    244245    $infos_gps  = array();
    245246    $infos_gps  =  cl_edit_controler::Get_exif_gps( $image['path'],$image,false) ;
    246     $v_exif=$infos_gps['is_exif']?true:false ;   
     247    $v_exif=$infos_gps['is_exif']?"EXIF":"" ;   
    247248    $v_db=false  ;
    248249    $v_db=$image['lat']!=0 && $image['lon']!=0;
    249 
    250     if(  $infos_gps['lat'] !=0  || $infos_gps['lon'] !=0 ) { 
    251    
     250    $v_db=$v_db?"BD":"";
     251
     252    if(  $infos_gps['lat'] !=0  || $infos_gps['lon'] !=0 ) {     
    252253      $new= ( !isset($image['lat'])? true: $image['lat']!=$infos_gps['lat'] ) ;
    253254      $image['lat']=$infos_gps['lat'];
     
    255256      $image['alt']=$infos_gps['alt'];
    256257      $sel_img= array($image['id']);
    257       if ($new) cl_edit_controler::add_data_base( $sel_img,$image['lat'],$image['lon'],$image['alt']) ;              
     258      if ($new) cl_edit_controler::add_data_base( $sel_img,$image['lat'],$image['lon'],$image['alt']) ;             
    258259   }         
    259    //=================================================
    260    $tpl_var = array_merge( $image,
    261       array(
    262         'U_EXIF' => $v_exif,
    263         'U_DB' => $v_db,
    264         'U_TN' => get_thumbnail_url($image),
    265         'TITLE' => get_thumbnail_title($image)
    266       ) );
    267 
    268   if ( isset($image['lat']) ){
    269     $tpl_var['U_MAP'] = cl_make_map_picture_url(
    270     array('image_id'=>$image['id'],
    271           'image_file'=>$image['file']) );
    272          }
    273            
    274     $template->append('thumbnails', $tpl_var);
    275 }
     260  //=================================================
     261  $name = render_element_name($image);
     262  $desc = render_element_description($image);
     263     if (!in_array($image['id'],$current[$j])) {
     264      $j =0;
     265        foreach($current as $rK => $rV){
     266            if (!in_array($image['id'],$rV)) { 
     267                $j++ ;
     268            } else{
     269            //   $info_message .= cl_edit_functions::Memo_Vars($current[$j]);
     270                break ;
     271            }
     272        }
     273     }
     274  //=================================================
     275   $tpl_var =  array_merge(
     276                   $current[$j],     array(
     277                  'ID' =>$image['id'],
     278                  'lat'  =>    $image['lat']    ,
     279                  'lon' =>     $image['lon']    ,
     280                  'alt' =>     $image['alt']    ,               
     281                  'TN_SRC' => get_thumbnail_url($image),
     282                  'TITLE' => get_thumbnail_title($image,$name,$desc),
     283                  'U_EXIF' => $v_exif,
     284                  'U_BD' =>  $v_db ,
     285                  'U_MAP' => cl_make_map_picture_url(
     286                                                array(
     287                                                      'image_id'=>$image['id'],
     288                                                      'image_file'=>$image['file'],
     289                                                      )
     290                                                    )
     291                        )
     292                  );
     293           
     294      $thumbnails[]=$tpl_var; 
     295      $j++;
     296}
     297       
     298$template->assign('thumbnails', $thumbnails);
    276299
    277300
     
    281304    )
    282305  );
    283 
    284 
     306 
    285307//==================================================================================
    286308$match="";
    287309if ( isset($_POST['submit'])   ) {
    288   if ($_POST['submit']==l10n('Submit') ) {
     310
     311 if ($_POST['submit']==l10n('selection') ) {
     312    $collection =$_POST['selection'];
     313  }
     314  if ($_POST['submit']==l10n('add') ) {
    289315    $_POST['selection']=array();
    290316    $collection =array();
     
    293319  if ($_POST['submit']==l10n('reset' ) ) {
    294320    $_POST['selection']=array();
     321     $collection =array();
    295322    unset($collection);
    296323  }
    297324}
    298325//=================================================================================
    299 $src="";
    300 $template->assign(
    301     array(  'EDIT_CL_PATH' => EDIT_CL_PATH,
    302             'path_js' => $path_js,
    303             'VERSION'=> $version,
    304             'EDIT_CL_PATH_ABS' => dirname(__FILE__).'/',
    305           )
    306   );
    307  
     326$src="";
    308327$template->assign( 'coordinates',
    309328                    array(  'FILE' => '',
     
    315334                        )
    316335                    );
    317 //======================================================================
     336//====================================================================== 
    318337if (isset($_POST['submit']) and $_POST['submit']==l10n('selection' )){
     338$collection=$_POST['selection'] ;
     339
    319340  if (isset($collection)) {
    320341    $init_info =true;
     
    359380                    $lonDMS= dec2dms($lon) ;
    360381                    $latDMS= dec2dms($lat) ;
    361 
    362382                        $v_db=false  ;
    363383    $v_db=$lon!=0 && $lat!=0;
     
    374394                  'lonDMS' =>   $lonDMS[3]     ,
    375395                  'adresse' =>  $adresse   ,
    376                   'U_TN' => get_thumbnail_url($image),
     396                  'TN_SRC' => get_thumbnail_url($image),
    377397                  'TITLE' => get_thumbnail_title($image),
    378398                  'U_EXIF' =>  $infos_gps['is_exif'] ,
  • extensions/edit_gmaps/admin/admin_edit.tpl

    r12126 r17761  
    11{html_head}
    2 {* $Id: admin_edit.tpl  2011-01-03   *}
    3 {if PHPWG_VERSION < 2.2 }
    4 {include file=$EDIT_CL_PATH_ABS|@cat:'header_2_1.tpl'}
    5 {else}
    6 {include file= $EDIT_CL_PATH_ABS|@cat:'header_2_2.tpl'}
    7 {/if}
    8 
     2{include file= $EDIT_CL_PATH_ABS|@cat:'header.tpl'}
    93 {assign var='visible' value = true }
    104  {if not empty($Selectthumbnails)  }
     
    3428                onLoad();
    3529                });
    36 
    3730 
    3831
     
    4740 border:outset;
    4841}
    49  
    50 
    5142{/literal}
    5243</style>
    53 
    54 
    55 
    56 {/html_head}
     44{/html_head}
     45 {$file_name} 
     46 <fieldset  id="Elements"  class="fieldset" >
     47{include file= $GLOBAL_TPL}
     48</fieldset>
     49 <script type="text/javascript">
     50   {if empty($Selectthumbnails)  }   
     51      var no_affiche="false" ;
     52   {else} 
     53      var no_affiche="true" ;
     54   {/if}
     55    </script>
     56{footer_script}{literal}
    5757 
    58  {$file_name}
    59  
    60 
    61     <fieldset class="fieldset">
    62         <legend>{'Display options'|@translate}</legend>
    63         <table ><td class="cluetip" title="{'set'|translate}|{'hlp_line1'|@translate}." align="left"  >
    64         <form>
    65         Set:
    66         <select onchange="document.location = this.options[this.selectedIndex].value;"   >
    67         <optgroup label="Specials">
    68         {html_options options=$specials}
    69         </optgroup>
    70         <optgroup label="{'Categories'|@translate}">
    71         {html_options options=$categories selected=$categories_selected}
    72         </optgroup>
    73         <!-- <optgroup label="{'Tags'|@translate}"></optgroup> -->
    74         </select>
    75         </form>
    76         </td>
    77         <td   > {'hlp_line2'|@translate} </td>
    78         </table>
    79         <p>{'elements per page'|@translate}:
    80             <a href="{$U_DISPLAY}&amp;display=20">20</a>
    81         | <a href="{$U_DISPLAY}&amp;display=50">50</a>
    82         | <a href="{$U_DISPLAY}&amp;display=100">100</a>
    83         | <a href="{$U_DISPLAY}&amp;display=all">{'all'|@translate}</a>
    84         </p>
    85     </fieldset>
    86 
     58jQuery(document).ready(function() {
     59   
     60
     61
     62    {/literal}
     63    val0="{'reset'|@translate}";
     64        jQuery('input[value='+val0+']').click(function (i) {ldelim}
     65    jQuery("#selectNone").click();
     66  });
     67
     68   title="{'selection'|@translate}|{'hlp_line3'|@translate}.";   
     69   value="{'selection'|@translate}" ;
     70
     71   message='<p><input class="cluetip submit" type="submit" name="submit"   title="'+ title +'" value="'+ value +'"  /> ';
     72
     73   message+='</p>';
     74  jQuery("#permitAction").append(message);
     75     
     76
     77});
     78{/footer_script}
    8779<form action="" method="post" id="Envoie" name="Envoie"   >
    88   {if not empty($thumbnails) &&  empty($Selectthumbnails) }  {/if}
    89 
    90 <fieldset  id="Elements"  class="fieldset">
    91         <legend>{'Elements'|@translate}
    92     {if !empty($navbar) }{include file='navigation_bar.tpl'} {/if}</legend>
    93         <fieldset >   
    94                 <ul class="thumbnails">
    95                         {foreach from=$thumbnails item=thumbnail}
    96                         <li><span class="wrap1">
    97                                 <label>
    98                                         <span class="wrap2"><span>
    99                                                 <img src="{$thumbnail.U_TN}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" />
    100                                         </span></span>
    101                                         <input type="checkbox" name="selection[]" value="{$thumbnail.id}"    />
    102                                 </label>
    103                                 <span class="thumbLegend" >
    104               <div> {$thumbnail.file} </div>
    105               {if isset($thumbnail.U_MAP)}
    106               <div ><a href="{$thumbnail.U_MAP}" target="_blank" >
    107               {if $thumbnail.U_EXIF  }
    108               EXIF
    109               {/if}
    110               {if $thumbnail.U_DB  }
    111                 BD
    112               {/if}</a>
    113               </div>                             
    114                                  
    115                                  {/if}
    116                    
    117                                        
    118                                 </span>
    119 
    120                                 </span>
    121                         </li>
    122                         {/foreach}
    123                 </ul>     
    124         </fieldset>
    125 
    126         <fieldset>
    127         <label> {'target'|@translate}</label>
    128         <table>
    129         <td><label><input type="radio" name="target" value="all" /> {'all'|@translate}</label></td>
    130         <td><label><input type="radio" name="target" value="selection" checked="checked" /> {'selection'|@translate}</label></td>
    131         <input class="cluetip submit" title="{'selection'|@translate}|{'hlp_line3'|@translate}." type="submit" name="submit" value="{'selection'|@translate}"   />
    132                                 <td>
    133                         <input class="cluetip submit" title="{'update_exif'|@translate}|{'hlp_update_exif'|@translate}." type="submit" value="{'update_exif'|@translate}" name="update" {$tag_input_enabled} /></td>
    134 
    135 </table>
    136         </fieldset>
    137 </fieldset>
    138  <script>
    139 
    140    {if empty($Selectthumbnails)  }   
    141    var no_affiche="false" ;
    142    {else} 
    143    var no_affiche="true" ;
    144    {/if}
    145    </script>
    14680
    14781<fieldset   id ="geoposition"  class="fieldset" >
    148 <legend>{'Selection'|@translate}</legend>
    149  
     82<legend>{'Selection'|@translate}</legend> 
    15083    <fieldset>   
    15184            <ul class="thumbnails">
    152 
    15385                  {foreach from=$Selectthumbnails item=thumbnail}               
    15486                        <li><span class="wrap1">
    15587                                <label>
    156                                         <span class="wrap2"><span>
    157                                                 <img src="{$thumbnail.U_TN}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" />
    158                                         </span>                                 
     88                                        <span class="wrap2">
     89          <span><img src="{$thumbnail.TN_SRC}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" /></span>   
     90         <span class="thumbLegend">     
     91          <div>{$thumbnail.file} </div>                 
     92            {if $thumbnail.U_EXIF } Exif{/if}
     93            {if $thumbnail.U_BD } Bd {/if}
     94                                    {if isset($thumbnail.U_MAP)}
     95                                            <a href="{$thumbnail.U_MAP}" target="_blank"><div>{$thumbnail.lat}</div><div>{$thumbnail.lon}</div></a>
     96                                    {/if}                                         
     97                                </span>         
     98                       
    15999                                        </span>
    160100                                        <br/>
    161101                </label>
    162102                                <input type="hidden"  value={$thumbnail.id}  name="selection[]"    />                           
    163                                 <span class="thumbLegend">      <div>{$thumbnail.file} </div>           
    164         {if $thumbnail.U_EXIF } Exif{/if}
    165          {if $thumbnail.U_BD } Bd {/if}
    166                                 {if isset($thumbnail.U_MAP)}
    167                                         <a href="{$thumbnail.U_MAP}" target="_blank"><div>{$thumbnail.lat}</div><div>{$thumbnail.lon}</div></a>
    168                                 {/if}
    169                                          
    170                                 </span>
     103                               
    171104                                </span>
    172105                        </li>           
     
    174107                {/foreach}
    175108        </ul>
    176 </fieldset>
    177     <fieldset>
     109 <p></p><p></p>
     110
     111  </fieldset>
     112
     113   <fieldset>
    178114    <label>{'command'|@translate}</label>
    179115
    180116                <table>
    181117                        <td>
    182                         <input class="cluetip submit" title="{'reset'|@translate}|{'hlp_line4'|@translate}."
    183         type="submit" name="submit" value="{'reset'|@translate}" /><br />
    184                         </td>
    185                         <td>
    186                         <input class="cluetip submit" title="{'selection'|@translate}|{'hlp_line3'|@translate}."
    187         type="submit" name="submit" value="{'selection'|@translate}" />
     118                        <input class="cluetip submit" title="{'return'|@translate}|{'hlp_line4'|@translate}."
     119        type="submit" name="submit" value="{'return'|@translate}" />
    188120                        </td>
    189121                </table>
     
    267199    </fieldset>
    268200  </fieldset>
    269 
    270 
    271 
    272201</fieldset>
    273 
     202</fieldset>
    274203</form>
    275204
    276  <fieldset >
  • extensions/edit_gmaps/admin/admin_edit_meta.php

    r12126 r17761  
    66if ( !isset($_GET['cat']) )   $_GET['cat'] = 'caddie';
    77$_GET['mode'] = 'map';
    8 if (PHPWG_VERSION < 2.2 )
    98 include (PHPWG_ROOT_PATH.'admin/element_set.php');
    10 else
    11 include (dirname(__FILE__).'\element_set.php');
    12 
     9 
    1310
    1411                               
     
    5249  }
    5350
    54   //**************** mise a jour de la base de données **************************
     51/***********************************
     52mise a jour de la base de donnees
     53***********************************/
    5554  if (  $_POST['submit'] == l10n('update_database') ) {
    5655          if ( count($collection)>0 )  {
  • extensions/edit_gmaps/admin/js/JScript.js

    r12126 r17761  
    11
     2if (!window.log) {
     3  window.log = function () {
     4    log.history = log.history || [];
     5    // store logs to an array for reference
     6    log.history.push(arguments);
     7    if (typeof console.log == 'function') {
     8      // Modern browsers   
     9      if ((Array.prototype.slice.call(arguments)).length == 1 && typeof Array.prototype.slice.call(arguments)[0] == 'string') {
     10        console.log(
     11                  (Array.prototype.slice.call(arguments)).toString());
     12      } else {
     13        console.log(Array.prototype.slice.call(arguments));
     14      }
     15    }
     16  }
     17}
     18
     19jQuery(document).ready(function () {
     20  jQuery('input').click(function (i) {
     21
     22
     23  });
     24
     25  jQuery("#selectNone").click(function (i) {
     26    no_affiche = "false";
     27    if (no_affiche != "true") {
     28      ef_reduce("geoposition", { fast: true })
     29     
     30    } else {
     31      ef_reduce("Elements", { fast: true })
     32    }
     33
     34    jQuery("#selectNone").css("color", "blue");
     35
     36
     37  });
     38  jQuery("#selectNone1").click(function (i) {
     39    no_affiche = "true";
     40    jQuery("#selectNone").css("color", "red");
     41    jQuery("#selectNone").click();
     42
     43  });
     44
     45  jQuery(".thumbnails label").each(function (i) {
     46    var wrap2 = jQuery(this).children(".wrap2");
     47    wrap2.append("<span class='thumbLegend'> </span>");
     48  });
     49  jQuery("filedset").each(function (i) {
     50
     51
     52  });
     53
     54  jQuery(".thumbnails label").each(function (i) {
     55    var wrap2 = jQuery(this).children(".wrap2");
     56
     57  });
     58});
     59
    260/* Déclaration des variables  */
    361var geocoder;
  • extensions/edit_gmaps/admin/js/fieldset.js

    r10060 r17761  
    11if (typeof ef_animate_fast == "undefined")
    22  var ef_animate_fast = true;
     3var no_affiche;
    34
    45// Smart Fieldsets initialization/
     
    67  var ef_plus_bullet_path = './plugins/edit_gmaps/admin/icon/plus.png';
    78  var ef_minus_bullet_path = './plugins/edit_gmaps/admin/icon/minus.png';
    8 
    99}
    1010
     
    1313
    1414function ef_reduce(fieldset_id, fast) {
     15 jQuery('#' + fieldset_id).hide();
     16  return;
    1517  l_m = jQuery('#' + fieldset_id + ' legend');
     18
    1619  if (ef_reduce.arguments.length < 2) fast = ef_animate_fast;
    1720  if (!l_m.is('.ef_command')) l_m.addClass('ef_command');
     
    1922    l_m.trigger('ef_reduce_private', fast.fast,this);
    2023  l_m.removeClass('ef_command');
    21 
     24  l_m.hide();
    2225}
    2326
     
    3538function ef_init(fieldset_id, cache_id) {
    3639  jQuery(document).ready(function () {
     40   
    3741    var f_m = jQuery('#' + fieldset_id);
    3842    l_m = jQuery('#' + fieldset_id + ' legend');
     
    118122          f_r.slideUp(400);
    119123          f_m.slideDown(400, function () {
    120             f_m.find('*').not('.ef_legends, img').animate({ opacity: 1 },200 );
     124            f_m.find('*').not('.ef_legends, img').animate({ opacity: 1 }, 200);
    121125          });
    122126        }
     
    131135      l_r.trigger('ef_maximize_private', ef_animate_fast);
    132136    });
    133     if (no_affiche!="true") {
     137    if (no_affiche != "true") {
    134138      ef_reduce("geoposition", { fast: true })
    135139      // jQuery("#Envoie").trigger("submit");
     
    161165
    162166
    163 jQuery(document).ready(function () {
     167jQuery(document).ready(function () { 
     168
    164169  if (jQuery(".fieldset").length >= 1) {
    165170    jQuery(".fieldset").each(
  • extensions/edit_gmaps/edit_gmaps.inc.php

    r12126 r17761  
    287287//===============================================================================       
    288288
    289 if ( isset($_POST['submit'] ) && $_POST['submit'] == l10n('cl_edit_save') )  { 
     289if ( isset($_POST['selectAction'] ) && $_POST['selectAction'] == l10n('cl_edit_save') )  { 
    290290                $my_para->check_desc_v = isset($_POST['check_desc_v']) ? $_POST['check_desc_v'] : "off" ;
    291291
  • extensions/edit_gmaps/language/fr_FR/lang.php

    r9412 r17761  
    11<?php
    22global $lang;
     3$lang['return']="Retour";
     4$lang['hlp_line4'] .= "Modifie la sélection."; 
    35$lang['update']='Mise à jour ';
    46$lang['update_exif']='Mise à jour EXIF';
     
    2426$lang['hlp_line2'] .= "Sélectionnez dans cette catégorie, une ou plusieurs photos d'un même lieu." ;
    2527$lang['hlp_line3'] .= "Affiche les coordonnées de la première photo si elle est connue. "  ;
    26 $lang['hlp_line4'] .= "Annule la sélection.";
     28
    2729$lang['hlp_line5'] .= "Entrez le lieu à rechercher (ville,pays)"  ;
    2830
  • extensions/edit_gmaps/main.inc.php

    r14701 r17761  
    22/*
    33Plugin Name: Edit Maps&Earth
    4 Version: auto
     4Version: 2.2.4
    55Description:  Editor for rv gmaps
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330
     
    1313define(  'EDIT_CL_PATH',   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' );
    1414        include_once(EDIT_CL_PATH.'edit_gmaps.inc.php');
     15  global $cl_edit_functions;
    1516
    1617$cl_edit_functions = new cl_edit_functions();
Note: See TracChangeset for help on using the changeset viewer.