Commit 65c98791 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

petits bugs

parent 24f51af3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ IntraNavigator = {

        if (typeof element === 'string') {
            element = $('<div>' + element + '</div>');
        } else {
            element = $('<div></div>');
        }

        var extractedTitle = element.find('.title,.modal-title,.popover-title,.page-header');
+5 −18
Original line number Diff line number Diff line
@@ -113,9 +113,12 @@ $.widget("unicaen.popAjax", {
        this.ajaxLoaded = true;
        this.setTitle(this.options.loadingTitle);
        this.setContent(this.options.loadingContent, true);
        axios.get(this.options.url).then(response => {
        $.ajax({
            url: this.options.url,
            success: (response) => {
                that.setContent(response);
            console.log(response);
                //that.contentSubmit(that.getPopoverElement().find('.popover-body'));
            }
        });
    },

@@ -295,22 +298,6 @@ $(function () {
});



function popAjax(element, onSubmit)
{
    $(element).popAjax();

    var widget = $(element).data('unicaenPopAjax');
    if (onSubmit) {
        widget.options.submitEvent = onSubmit;
    }
    widget.show();

    return widget;
}



function popConfirm(element, options)
{
    var popConfirm = bootstrap.Popover.getInstance(element);