Browse Source

reverse vers 1.2.4

svn/root/tags/v1.3.6
arnaud.berard@mister-graphx.com 7 years ago
parent
commit
c959f51211
  1. 2
      .gitattributes
  2. 2
      formulaires/inserer_modeles.php
  3. 3
      inserer_modeles.html
  4. 14
      inserer_modeles_pipelines.php
  5. 2
      paquet.xml

2
.gitattributes vendored

@ -5,6 +5,7 @@ formulaires/inserer_modeles.php -text
icones_barre/inserer_modeles.png -text
icones_barre/media.png -text
inc/inserer_modeles.php -text
/inserer_modeles.html -text
/inserer_modeles_pipelines.php -text
lang/inserer_modeles.xml -text
lang/inserer_modeles_en.php -text
@ -14,7 +15,6 @@ lang/paquet-inserer_modeles_fr.php -text
modeles/media.yaml -text
/paquet.xml -text
prive/squelettes/contenu/configurer_inserer_modeles.html -text
prive/squelettes/contenu/inserer_modeles.html -text
prive/style_prive_plugin_inserer_modeles.html -text
prive/themes/spip/images/modele-16.png -text
prive/themes/spip/images/modele-24.png -text

2
formulaires/inserer_modeles.php

@ -38,7 +38,7 @@ function formulaires_inserer_modeles_charger_dist($formulaire_modele,$modalbox,$
if ($modalbox!='') {
$contexte['modalbox'] = 'oui';
$_modalbox_retour = url_absolue(generer_url_ecrire('inserer_modeles','var_zajax=contenu',true));
$_modalbox_retour = url_absolue(generer_url_public('inserer_modeles','',true));
if (substr($formulaire_modele,-5)=='.yaml')
$formulaire_modele = substr($formulaire_modele,0,-5);
$_modalbox_retour = parametre_url($_modalbox_retour,'formulaire_modele',$formulaire_modele,'&');

3
prive/squelettes/contenu/inserer_modeles.html → inserer_modeles.html

@ -1,2 +1 @@
#FORMULAIRE_INSERER_MODELES{#ENV{formulaire_modele},#ENV{modalbox},#ENV*}
#FORMULAIRE_INSERER_MODELES{#ENV{formulaire_modele},#ENV{modalbox},#ENV*}

14
inserer_modeles_pipelines.php

@ -10,7 +10,7 @@ function inserer_modeles_affiche_droite($flux)
if (in_array($flux['args']['exec'], $config_meta['objets'])) {
include_spip('inc/inserer_modeles');
if (count(inserer_modeles_lister_formulaires_modeles()) > 0) {
$flux['data'] .= recuperer_fond('prive/squelettes/contenu/inserer_modeles', $flux['args']);
$flux['data'] .= recuperer_fond('inserer_modeles', $flux['args']);
}
}
@ -41,10 +41,10 @@ function inserer_modeles_porte_plume_barre_pre_charger($barres)
'id' => 'inserer_modele_'.$nom,
'name' => _T_ou_typo($formulaire['nom']),
'className' => 'outil_inserer_modele_'.$nom,
'beforeInsert' => "function() {jQuery.modalboxload('".generer_url_ecrire(
'beforeInsert' => "function() {jQuery.modalboxload('".url_absolue(generer_url_public(
'inserer_modeles',
"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()"
).",{minHeight: '90%'});}",
"modalbox=oui&formulaire_modele=$nom&id_article='+$(\"[name='id_article']\").val()+'&id_rubrique='+$(\"[name='id_rubrique']\").val()+'&id_breve='+$(\"[name='id_breve']\").val()"
)).",{minHeight: '90%'});}",
'display' => true,
);
}
@ -55,10 +55,10 @@ function inserer_modeles_porte_plume_barre_pre_charger($barres)
'name' => _T('inserer_modeles:outil_inserer_modeles'),
'key' => 'M',
'className' => 'outil_inserer_modeles',
'beforeInsert' => "function() {jQuery.modalboxload('".generer_url_ecrire(
'beforeInsert' => "function() {jQuery.modalboxload('".url_absolue(generer_url_public(
'inserer_modeles',
"var_zajax=contenu&modalbox=oui&id_article='+$(\"[name='id_article']\").val()+'&id_rubrique='+$(\"[name='id_rubrique']\").val()+'&id_breve='+$(\"[name='id_breve']\").val()"
).",{minHeight: '90%'});}",
"modalbox=oui&id_article='+$(\"[name='id_article']\").val()+'&id_rubrique='+$(\"[name='id_rubrique']\").val()+'&id_breve='+$(\"[name='id_breve']\").val()"
)).",{minHeight: '90%'});}",
'display' => true,
'dropMenu' => $sous_menu,
));

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="inserer_modeles"
categorie="edition"
version="1.2.6"
version="1.2.4"
etat="stable"
compatibilite="[3.0.0;3.1.*]"
logo="prive/themes/spip/images/modele-32.png"

Loading…
Cancel
Save