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

[extensions] edit_gmaps compatibility 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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(
Note: See TracChangeset for help on using the changeset viewer.