Skip to content

Commit

Permalink
fix tinymce menu vs date/time controls (z-index)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninianne98 committed May 8, 2024
1 parent d2f3cc2 commit b57a51e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMSAdmin/c3-admin/Includes/common-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ function cmsSetDateRegion() {
showOn: "both",
buttonImage: '/c3-admin/images/calendar.png',
buttonImageOnly: true,
constrainInput: true
constrainInput: true,
beforeShow: function () {
setTimeout(function () {
$('.ui-datepicker').css('z-index', 15);
}, 0);
}
});
});
}
Expand All @@ -98,6 +103,9 @@ function cmsSetTimeRegion() {
$(".timeRegion").each(function () {
if (!$(this).hasClass("hasTimePicker")) {
$(this).addClass("hasTimePicker");
$(this).parent().css('z-index', 15);
$(this).parent().css('position', 'relative');

var id = $(this).attr('id');
$('<img class="ui-timepicker-trigger" src="/c3-admin/images/clock.png" for="' + id + '" id="' + id + '_triggerbtn" alt="' + cmsTimePattern + '" title="' + cmsTimePattern + '">').insertAfter(this);

Expand Down

0 comments on commit b57a51e

Please sign in to comment.