Changeset 7479 in spip-zone


Ignore:
Timestamp:
Nov 20, 2006, 2:34:32 PM (13 years ago)
Author:
renato@…
Message:

simplify the code to manage the language menus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/forms/forms_et_tables_1_9_1/forms_lang.js

    r7478 r7479  
    6565        //create menu for each form. The menu is just before the form
    6666        init_forms.prev().empty().each(function() {
    67                 var id = "#"+this.id;
    6867                //store all form containers to allow menu lang update on each container
    6968                //when it is triggered by global menu
    70                 //in case of init of a single updated form switch the old lang container with new new one
    71                 forms_containers.not(id).add(id);
    72                 forms_make_menu_lang($(id),$(this).next());
     69                forms_containers.add(this);
     70                forms_make_menu_lang($(this),$(this).next());
    7371        }).end();
    7472}
     
    126124        //remove the current form from the list of forms
    127125        forms_forms.not(this);
     126        //remove the current menu lang container from the list
     127        forms_containers.not($(this).prev());
    128128        //build the input values
    129129        $('input[@id^="nom_"]',this).each(function(){
Note: See TracChangeset for help on using the changeset viewer.