X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/36f6233fd79390ad5af8a1532eac60a0ae57c825..f938afb8ab4cb091d12e0ef0311eaea14b774798:/platforma/static/filebrowser/js/FB_FileBrowseField.js diff --git a/platforma/static/filebrowser/js/FB_FileBrowseField.js b/platforma/static/filebrowser/js/FB_FileBrowseField.js deleted file mode 100644 index 5e3aa9f5..00000000 --- a/platforma/static/filebrowser/js/FB_FileBrowseField.js +++ /dev/null @@ -1,32 +0,0 @@ -function FileSubmit(FileURL, ThumbURL, FileType) { - - // var input_id=window.name.split("___").join("."); - var input_id=window.name.replace(/____/g,'-').split("___").join("."); - var preview_id = 'image_' + input_id; - var link_id = 'link_' + input_id; - var help_id = 'help_' + input_id; - input = opener.document.getElementById(input_id); - preview = opener.document.getElementById(preview_id); - link = opener.document.getElementById(link_id); - help = opener.document.getElementById(help_id); - // set new value for input field - input.value = FileURL; - - if (ThumbURL && FileType != "") { - // selected file is an image and thumbnail is available: - // display the preview-image (thumbnail) - // link the preview-image to the original image - link.setAttribute("href", FileURL); - link.setAttribute("target", "_blank"); - preview.setAttribute("src", ThumbURL); - help.setAttribute("style", "display:block"); - } else { - // hide preview elements - link.setAttribute("href", ""); - link.setAttribute("target", ""); - preview.setAttribute("src", ""); - help.setAttribute("style", "display:none"); - } - this.close(); -} -