Commit c30e7f6f authored by Theo Lecolley's avatar Theo Lecolley
Browse files

#68561 Correction modal gestion des structure et agrandissement de l'input "Heures ou euros"

parent 7ab9c94a
Loading
Loading
Loading
Loading
Loading
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+5
Changes for public/css/plafonds.scss: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,3 +12,8 @@
.plafonds .plafond {
  margin-bottom: 10px;
}

.plafonds-config input[data-name="heures"] {
  width: 10ch;
  min-width: 10ch;
}
 No newline at end of file
+8 −1
Changes for public/js/mod-ajax.js: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -75,6 +75,13 @@ $.widget("unicaen.modAjax", {
        that.element[0].addEventListener('hidden.bs.modal', () => {
            that.hide(true);
        });

        that.getModalElement()[0].addEventListener('hidden.bs.modal', () => {
            if (that.options.forced && that.options.url) {
                that.contentDiv.empty();
                that.ajaxLoaded = false;
            }
        });
    },


@@ -153,7 +160,7 @@ $.widget("unicaen.modAjax", {
            url: that.options.url,
            success: (response) => {
                that.setContent(response);

                // WidgetInitializer.use('tab-ajax');
                var first_input = that.contentDiv.find('input[type=text]:visible:enabled:first, textarea:visible:enabled:first, select:visible:enabled:first')[0];
                if (first_input != undefined) {
                    first_input.focus();