From 6117306fdc8d7337500f340a5aea9c597a177275 Mon Sep 17 00:00:00 2001 From: doubaniux Date: Thu, 7 May 2020 06:29:00 +0800 Subject: [PATCH] fix iframe redirect issue --- books/static/js/scrape.js | 4 +++- books/templates/books/scrape.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/books/static/js/scrape.js b/books/static/js/scrape.js index f051343f..7617ca5f 100644 --- a/books/static/js/scrape.js +++ b/books/static/js/scrape.js @@ -8,7 +8,7 @@ $(document).ready( function() { $("input[type='file']").each(function() { $(this).after(''); }); - // preview uploaded pic}) + // preview uploaded pic $("input[type='file']").change(function() { if (this.files && this.files[0]) { var reader = new FileReader(); @@ -20,4 +20,6 @@ $(document).ready( function() { reader.readAsDataURL(this.files[0]); } }); + + }); \ No newline at end of file diff --git a/books/templates/books/scrape.html b/books/templates/books/scrape.html index fa3f0b5e..1e692095 100644 --- a/books/templates/books/scrape.html +++ b/books/templates/books/scrape.html @@ -44,7 +44,8 @@
- + +