Commit a4211898 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Restaurations mdifs précédentes

parent 23fcc459
Loading
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -304,7 +304,7 @@ IntraNavigator = {

        //$('body').one("click", ".intranavigator .btn-primary", IntraNavigator.btnPrimaryClickListener);
        // Réglage du focus sur le champ de formulaire ayant l'attribut 'autofocus'
        $('.intranavigator [autofocus]').focus();
        $('.intranavigator [autofocus]').trigger("focus");
    },


@@ -893,7 +893,7 @@ $.widget("unicaen.tabAjax", {
        tab = this.getTab(tab);
        if (tab.attr('href')[0] !== '#' && (!this.getIsLoaded(tab) || this.getForceRefresh(tab))) {
            var loadurl = tab.attr('href'),
                tid = tab.attr('data-bs-target');
                tid = tab.data('bs-target');

            that.element.find(".tab-pane" + tid).html("<div class=\"loading\">&nbsp;</div>");
            IntraNavigator.add(that.element.find(".tab-pane" + tid));
@@ -913,7 +913,7 @@ $.widget("unicaen.tabAjax", {
        var that = this;

        tab = this.getTab(tab);
        tid = tab.attr('data-bs-target');
        tid = tab.data('bs-target');
        return that.element.find(".tab-pane" + tid).html();
    },

@@ -950,7 +950,6 @@ $(function ()

$.widget("unicaen.popAjax", {

    popDiv: undefined, loading: false, contentGuid: null, container: undefined,
    popInstance: undefined,
    loading: true,
    ajaxLoaded: false,
@@ -980,12 +979,12 @@ $.widget("unicaen.popAjax", {
        /* Traitement des événements */
        if ('A' === this.element.prop("tagName")) {
            // On retire le comportement normal du click sur les ancres
            that.element.click(function (e) {
            that.element.on("click", () => {
                return false;
            });
        }

        $('html').click((e) => {
        $('html').on("click", (e) => {
            // On détecte si on fait un clic ailleurs afin de fermer la pop-ajax
            that.htmlClick(e);
        });