X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b0d77fd4dd2b177e77e2bb038a5864567adfd9df..00a90d6175599e055f5a84697c8388d81ac1b007:/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 index b0696cea..5e3aa9f5 100644 --- a/platforma/static/filebrowser/js/FB_FileBrowseField.js +++ b/platforma/static/filebrowser/js/FB_FileBrowseField.js @@ -1,5 +1,5 @@ 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; @@ -11,7 +11,7 @@ function FileSubmit(FileURL, ThumbURL, FileType) { 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)