Changeset 90891 in spip-zone


Ignore:
Timestamp:
Jul 18, 2015, 6:04:12 PM (4 years ago)
Author:
p@…
Message:

Option de redirection une fois les uploads terminé

Location:
_plugins_/uploadhtml5/trunk
Files:
2 edited

Legend:

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

    r90890 r90891  
    3232}
    3333
    34 function formulaires_uploadhtml5_charger_dist($objet, $id_objet, $mode = 'auto', $ajaxReload = '') {
    35     return array('ajaxReload' => $ajaxReload);
     34function formulaires_uploadhtml5_charger_dist($objet, $id_objet, $mode = 'auto', $ajaxReload = '', $args = array()) {
     35
     36    // Contexte de base
     37    $contexte = array(
     38        'ajaxReload' => $ajaxReload,
     39        'redirect' => $args['redirect']
     40    );
     41
     42    return $contexte;
    3643}
    3744
  • _plugins_/uploadhtml5/trunk/javascript/spip.dropzone.js.html

    r90771 r90891  
    1212   },]
    1313
     14   [complete: function (file, response) {
     15     window.location = "(#ENV{redirect})";
     16   },]
     17
    1418   // Traduire dropzone
    1519   #INCLURE{fond=javascript/traduire_dropzone/#ENV{paramName, file}, env}
Note: See TracChangeset for help on using the changeset viewer.