|
@@ -494,7 +494,10 @@ Admin::script(
|
|
|
if ($(this).hasClass('fullscreen-image') || $(this).hasClass('video-thumbnail')) {
|
|
|
return;
|
|
|
}
|
|
|
- const fileName = this.src.split('/').pop().split('?')[0];
|
|
|
+
|
|
|
+ // const fileName = this.src.split('/').pop().split('?')[0];
|
|
|
+ const getFileName = url => url.split('?')[0].split('/').pop();
|
|
|
+ const fileName = getFileName(this.src);
|
|
|
|
|
|
$(this).wrap('<div class="download-wrapper"></div>')
|
|
|
.after(`<div class="download-hover">
|