['type' => 'video', 'filetype' => 'video/mp4']
] : [],
'maxFileSize' => 100000,
- 'dropZoneTitle' => 'Выберите видеофайл',
+ 'dropZoneTitle' => 'Выберите видеофайл (поддержииваемый формат: mkv, mov, avi, mp4,
+ максимальный размер: 100 МБ)',
'browseOnZoneClick' => true,
'fileActionSettings' => [
'showZoom' => false,
['type' => 'video', 'filetype' => 'video/mp4']
] : [],
'maxFileSize' => 100000,
- 'dropZoneTitle' => 'Выберите видеофайл',
+ 'dropZoneTitle' => 'Выберите видеофайл (поддержииваемый формат: mkv, mov, avi, mp4,
+ максимальный размер: 100 МБ)',
'browseOnZoneClick' => true,
'fileActionSettings' => [
'showZoom' => false,
this.play();
});
});
+ console.log('check');
+ function cleanDropZoneText(selector) {
+ const dropZone = document.querySelector(selector);
+ if (dropZone && dropZone.innerHTML.includes('(Или щёлкните, чтобы выбрать файл)')) {
+ dropZone.innerHTML = dropZone.innerHTML.replace('(Или щёлкните, чтобы выбрать файл)', '');
+ return true;
+ }
+ return false;
+ }
+
+ function observeAndClean(selector) {
+ if (cleanDropZoneText(selector)) {
+ return;
+ }
+ const observer = new MutationObserver((mutations, obs) => {
+ if (cleanDropZoneText(selector)) {
+ obs.disconnect();
+ }
+ });
+
+ observer.observe(document.body, {
+ childList: true,
+ subtree: true
+ });
+ }
+ observeAndClean('.field-video-file-upload .file-drop-zone-title');
+ observeAndClean('.field-presentation-file-upload .file-drop-zone-title');
});
+
$(document).ready(function () {
if (window.location.pathname.includes('/bouquet/view')) {
$('.year-picker, .month-picker').on('change', function () {