Commit 551f5198 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Résolution du problème de rafraichissement des mod-ajax

parent afdabec9
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ $.widget("unicaen.modAjax", {
        this.setTitle(this.options.loadingTitle);
        this.setContent(this.options.loadingContent, true);
        $.ajax({
            url: this.options.url,
            url: that.options.url,
            success: (response) => {
                that.setContent(response);

@@ -374,7 +374,9 @@ function modAjax(element, onSubmit)
        widget.show();
    }
    widget.element = $(element);
    if (element.dataset.url) {
        widget.options.url = element.dataset.url;
    }

    return widget;
}
 No newline at end of file