this.play();
});
});
+
+ $('#bouquet-file-upload').on('filesorted', function(event, params) {
+ var order = params.stack.map(function(file) {
+ return file.key;
+ });
+ //console.log(JSON.stringify(order));
+ $('#photo-order').val(JSON.stringify(order));
+ });
+ 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 () {