mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-03 20:14:52 +02:00
Slides require mesage
This commit is contained in:
parent
9635b4b721
commit
93966788eb
@ -351,11 +351,86 @@ function load_modal(settings) {
|
|||||||
AJAX_RUNNING = 0;
|
AJAX_RUNNING = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// No onsumbit configured. Directly close.
|
if (Array.isArray(settings.form) === false) {
|
||||||
if (document.getElementById(settings.form) != undefined) {
|
$("#" + settings.form + " :input").each(function() {
|
||||||
document.getElementById(settings.form).submit();
|
if (this.checkValidity() === false) {
|
||||||
|
var select2 = $(this).attr("data-select2-id");
|
||||||
|
if (typeof select2 !== typeof undefined && select2 !== false) {
|
||||||
|
$(this)
|
||||||
|
.next()
|
||||||
|
.attr("title", this.validationMessage);
|
||||||
|
$(this)
|
||||||
|
.next()
|
||||||
|
.tooltip({
|
||||||
|
tooltipClass: "uitooltip",
|
||||||
|
position: {
|
||||||
|
my: "right bottom",
|
||||||
|
at: "right top",
|
||||||
|
using: function(position, feedback) {
|
||||||
|
$(this).css(position);
|
||||||
|
$("<div>")
|
||||||
|
.addClass("arrow")
|
||||||
|
.addClass(feedback.vertical)
|
||||||
|
.addClass(feedback.horizontal)
|
||||||
|
.appendTo(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$(this)
|
||||||
|
.next()
|
||||||
|
.tooltip("open");
|
||||||
|
|
||||||
|
var element = $(this).next();
|
||||||
|
setTimeout(
|
||||||
|
function(element) {
|
||||||
|
element.tooltip("destroy");
|
||||||
|
element.removeAttr("title");
|
||||||
|
},
|
||||||
|
3000,
|
||||||
|
element
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$(this).attr("title", this.validationMessage);
|
||||||
|
$(this).tooltip({
|
||||||
|
tooltipClass: "uitooltip",
|
||||||
|
position: {
|
||||||
|
my: "right bottom",
|
||||||
|
at: "right top",
|
||||||
|
using: function(position, feedback) {
|
||||||
|
$(this).css(position);
|
||||||
|
$("<div>")
|
||||||
|
.addClass("arrow")
|
||||||
|
.addClass(feedback.vertical)
|
||||||
|
.addClass(feedback.horizontal)
|
||||||
|
.appendTo(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$(this).tooltip("open");
|
||||||
|
|
||||||
|
var element = $(this);
|
||||||
|
setTimeout(
|
||||||
|
function(element) {
|
||||||
|
element.tooltip("destroy");
|
||||||
|
element.removeAttr("title");
|
||||||
|
},
|
||||||
|
3000,
|
||||||
|
element
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
flagError = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!flagError) {
|
||||||
|
// No onsumbit configured. Directly close.
|
||||||
|
if (document.getElementById(settings.form) != undefined) {
|
||||||
|
document.getElementById(settings.form).submit();
|
||||||
|
}
|
||||||
|
d.dialog("close");
|
||||||
}
|
}
|
||||||
d.dialog("close");
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ class Manager implements PublicLogin
|
|||||||
|
|
||||||
$this->dashboardId = (int) \get_parameter('dashboardId', 0);
|
$this->dashboardId = (int) \get_parameter('dashboardId', 0);
|
||||||
if ($this->slides === 1) {
|
if ($this->slides === 1) {
|
||||||
$this->slidesIds = (array) \get_parameter('slidesIds', [get_user_dashboards($config['id_user'])[0]['id']]);
|
$this->slidesIds = (array) \get_parameter('slidesIds');
|
||||||
$this->cellModeSlides = (int) \get_parameter(
|
$this->cellModeSlides = (int) \get_parameter(
|
||||||
'cellModeSlides',
|
'cellModeSlides',
|
||||||
0
|
0
|
||||||
|
@ -81,6 +81,7 @@ $inputs[] = [
|
|||||||
'return' => true,
|
'return' => true,
|
||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'sort' => false,
|
'sort' => false,
|
||||||
|
'required' => 'required',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user