Changeset 5839 in spip-zone


Ignore:
Timestamp:
Oct 2, 2006, 5:37:47 PM (15 years ago)
Author:
renato@…
Message:

shows only active languages.
fix a submit bug that was not saving the changes made

Location:
_plugins_/_stable_/forms/1_9_1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/forms/1_9_1/forms_filtres.php

    r5838 r5839  
    6666                $flux .=        "<link rel='stylesheet' href='".find_in_path('spip_forms.css')."' type='text/css' media='all' />\n";
    6767                if($GLOBALS['meta']['multi_rubriques']=="oui" || $GLOBALS['meta']['multi_articles']=="oui")
    68                         $active_langs = "'".str_replace(",","','",$GLOBALS['meta']['langues_proposees'])."'";
     68                        $active_langs = "'".str_replace(",","','",$GLOBALS['meta']['langues_multilingue'])."'";
    6969                else
    7070                        $active_langs = $GLOBALS["spip_lang"];
  • _plugins_/_stable_/forms/1_9_1/forms_lang.js

    r5837 r5839  
    2727
    2828function forms_make_menu_lang(container,target) {
    29         $(forms_menu_lang).clone().click(function() {forms_change_lang(this,container,target)}).
     29        $(forms_menu_lang).clone().find("a").click(function() {forms_change_lang(this,container,target)}).end().
    3030        append("<div style='clear:left'></div>").appendTo(container);
    3131}
     
    100100        //else save value
    101101        if(el.field_lang[forms_def_lang]!=el.value) {
    102                 if(el.field_lang[lang]==undefined) el.multi = true;
     102                el.multi = true;
    103103                el.field_lang[lang] = el.value;
    104104        }
Note: See TracChangeset for help on using the changeset viewer.