Changeset 90083 in spip-zone


Ignore:
Timestamp:
Jun 10, 2015, 5:45:00 PM (6 years ago)
Author:
p@…
Message:

Ajouter un paramètre "ajaxReload" aux formulaires pour spécifier le bloc
qui devra être recharger après l'upload d'un document.

Location:
_plugins_/uploadhtml5/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/uploadhtml5/trunk/formulaires/uploadhtml5.html

    r90048 r90083  
    2424         null})],
    2525
    26        [(#REM|test_espace_prive|oui)
    27            success: function(file, response) {
    28              ajaxReload("documents");
    29            },
    30        ]
     26       [success: function(file, response) {
     27         ajaxReload("(#ENV{ajaxReload})");
     28       },]
    3129
    3230       // Traduire dropzone
  • _plugins_/uploadhtml5/trunk/formulaires/uploadhtml5.php

    r90046 r90083  
    33if (!defined('_ECRIRE_INC_VERSION')) return;
    44
    5 function formulaires_uploadhtml5_saisies_dist($objet, $id_objet, $mode = 'auto') {
     5function formulaires_uploadhtml5_saisies_dist($objet, $id_objet, $mode = 'auto', $ajaxReload = '') {
    66    $saisies = array(
    77        array(
     
    1919}
    2020
    21 function formulaires_uploadhtml5_traiter_dist($objet, $id_objet, $mode = 'auto') {
     21function formulaires_uploadhtml5_charger_dist($objet, $id_objet, $mode = 'auto', $ajaxReload = '') {
     22    return array('ajaxReload' => $ajaxReload);
     23}
     24
     25function formulaires_uploadhtml5_traiter_dist($objet, $id_objet, $mode = 'auto', $ajaxReload = '') {
    2226
    2327    // upload de la dropzone
  • _plugins_/uploadhtml5/trunk/formulaires/uploadhtml5_logo.html

    r90048 r90083  
    2626
    2727
    28        [(#REM|test_espace_prive|oui)
    29            success: function(file, response) {
    30              ajaxReload("navigation");
    31            },
    32        ]
     28       [success: function(file, response) {
     29         ajaxReload("(#ENV{ajaxReload})");
     30       },]
    3331
    3432       // Traduire dropzone
  • _plugins_/uploadhtml5/trunk/formulaires/uploadhtml5_logo.php

    r89200 r90083  
    33if (!defined('_ECRIRE_INC_VERSION')) return;
    44
    5 function formulaires_uploadhtml5_logo_saisies_dist($objet, $id_objet) {
     5function formulaires_uploadhtml5_logo_saisies_dist($objet, $id_objet, $ajaxReload = '') {
    66    $saisies = array(
    77        array(
     
    1919}
    2020
    21 function formulaires_uploadhtml5_logo_traiter_dist($objet, $id_objet) {
     21function formulaires_uploadhtml5_logo_charger_dist($objet, $id_objet, $ajaxReload = '') {
     22    return array('ajaxReload' => $ajaxReload);
     23}
     24
     25function formulaires_uploadhtml5_logo_traiter_dist($objet, $id_objet, $ajaxReload = '') {
    2226    // upload de la dropzone
    2327    uploadhtml5_uploader_logo($objet, $id_objet, $_FILES['file_logo']['tmp_name']);
  • _plugins_/uploadhtml5/trunk/prive/squelettes/inclure/uploadhtml5.html

    r88802 r90083  
    1 #FORMULAIRE_UPLOADHTML5{#ENV{type},#ENV{id}}
     1#FORMULAIRE_UPLOADHTML5{#ENV{type},#ENV{id}, auto, documents}
  • _plugins_/uploadhtml5/trunk/prive/squelettes/inclure/uploadhtml5_logo.html

    r89203 r90083  
    1 #FORMULAIRE_UPLOADHTML5_LOGO{#ENV{type},#ENV{id}}
     1#FORMULAIRE_UPLOADHTML5_LOGO{#ENV{type},#ENV{id}, navigation}
Note: See TracChangeset for help on using the changeset viewer.