Changeset 94640 in spip-zone


Ignore:
Timestamp:
Jan 18, 2016, 1:34:23 PM (5 years ago)
Author:
arnaud.berard@…
Message:
  • generer_url_ecrire plutot que generer_url_public
  • on replace le squelette de la pop up dans le prive, sinon ça ne charge rien sous spip 3.1

+z

Location:
_plugins_/inserer_modeles/trunk
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • _plugins_/inserer_modeles/trunk/inserer_modeles_pipelines.php

    r90935 r94640  
    1111        include_spip('inc/inserer_modeles');
    1212        if (count(inserer_modeles_lister_formulaires_modeles()) > 0) {
    13             $flux['data'] .= recuperer_fond('inserer_modeles', $flux['args']);
     13            $flux['data'] .= recuperer_fond('prive/squelettes/contenu/inserer_modeles', $flux['args']);
    1414        }
    1515    }
     
    4242                'name' => _T_ou_typo($formulaire['nom']),
    4343                'className' => 'outil_inserer_modele_'.$nom,
    44                 'beforeInsert' => "function() {jQuery.modalboxload('".url_absolue(generer_url_public(
     44                'beforeInsert' => "function() {jQuery.modalboxload('".generer_url_ecrire(
    4545                    'inserer_modeles',
    46                     "modalbox=oui&formulaire_modele=$nom&id_article='+$(\"[name='id_article']\").val()+'&id_rubrique='+$(\"[name='id_rubrique']\").val()+'&id_breve='+$(\"[name='id_breve']\").val()"
    47                 )).",{minHeight: '90%'});}",
     46                    "var_zajax=contenu&modalbox=oui&formulaire_modele=$nom&id_article='+$(\"[name='id_article']\").val()+'&id_rubrique='+$(\"[name='id_rubrique']\").val()+'&id_breve='+$(\"[name='id_breve']\").val()"
     47                ).",{minHeight: '90%'});}",
    4848                'display' => true,
    4949            );
     
    5656            'key' => 'M',
    5757            'className' => 'outil_inserer_modeles',
    58             'beforeInsert' => "function() {jQuery.modalboxload('".url_absolue(generer_url_public(
     58            'beforeInsert' => "function() {jQuery.modalboxload('".generer_url_ecrire(
    5959                'inserer_modeles',
    60                 "modalbox=oui&id_article='+$(\"[name='id_article']\").val()+'&id_rubrique='+$(\"[name='id_rubrique']\").val()+'&id_breve='+$(\"[name='id_breve']\").val()"
    61             )).",{minHeight: '90%'});}",
     60                "var_zajax=contenu&modalbox=oui&id_article='+$(\"[name='id_article']\").val()+'&id_rubrique='+$(\"[name='id_rubrique']\").val()+'&id_breve='+$(\"[name='id_breve']\").val()"
     61            ).",{minHeight: '90%'});}",
    6262            'display' => true,
    6363            'dropMenu' => $sous_menu,
  • _plugins_/inserer_modeles/trunk/paquet.xml

    r92447 r94640  
    22        prefix="inserer_modeles"
    33        categorie="edition"
    4         version="1.2.4"
     4        version="1.2.5"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.1.*]"
  • _plugins_/inserer_modeles/trunk/prive/squelettes/contenu/inserer_modeles.html

    r93672 r94640  
    11#FORMULAIRE_INSERER_MODELES{#ENV{formulaire_modele},#ENV{modalbox},#ENV*}
     2
Note: See TracChangeset for help on using the changeset viewer.