Changeset 5857 in spip-zone


Ignore:
Timestamp:
Oct 3, 2006, 2:03:15 PM (15 years ago)
Author:
renato@…
Message:

Run multi language script on forms_edit.php only.

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

Legend:

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

    r5839 r5857  
    6868                        $active_langs = "'".str_replace(",","','",$GLOBALS['meta']['langues_multilingue'])."'";
    6969                else
    70                         $active_langs = $GLOBALS["spip_lang"];
     70                        $active_langs = "";
    7171                $flux .= "<script src='".find_in_path('forms_lang.js')."' type='text/javascript'></script>\n".
    7272                "<script type='text/javascript'>\n".
  • _plugins_/_stable_/forms/1_9_1/forms_lang.js

    r5847 r5857  
    77
    88function forms_init_lang() {
    9         //Should detect is multilinguism is activated. If not return.
    10         if(forms_avail_langs.length<=1) return;
     9        //Detect if we're on the right page and is multilinguism is activated. If not return.
     10        if(window.location.search.indexOf("exec=forms_edit")==-1 || forms_avail_langs.length<=1) return;
    1111        forms_cur_lang = forms_def_lang;
    1212        forms_containers = $("#forms_lang");
Note: See TracChangeset for help on using the changeset viewer.