Browse Source

fix(dateur): ne pas déclencher l'ouverture du datepicker quand la date n'est pas en édition

Fix: #5099
remotes/checkIfPRContentChanged-1662225058685112401/issue_5099
b_b 7 months ago committed by Gitea
parent
commit
13a90d3878
  1. 6
      prive/formulaires/dateur/inc-dateur.html

6
prive/formulaires/dateur/inc-dateur.html

@ -126,7 +126,11 @@ function date_picker_enable_on_this(opts) {
.trigger('datePickerLoaded');
if (!options.showOnFocus) {
$me.on('click', function(){$me.datepicker('show')});
$me.on('click', function(){
if ($me.is(":visible")) {
$me.datepicker('show');
}
});
}
if ($me.data('range-after') || $me.data('range-before')) {

Loading…
Cancel
Save