Fix: openFinder dialog

This commit is contained in:
cutls 2019-12-12 00:17:22 +09:00
parent e190cf3393
commit af459aa93a
2 changed files with 4 additions and 5 deletions

View File

@ -144,7 +144,7 @@ onmessage = function(e) {
} else if (e.data[0] == 'toastSaved') { } else if (e.data[0] == 'toastSaved') {
var show = `${lang.lang_img_DLDone}${ var show = `${lang.lang_img_DLDone}${
e.data[1][0] e.data[1][0]
}<button class="btn-flat toast-action" onclick="openFinder(${e.data[1][1]}')">Show</button>` }<button class="btn-flat toast-action" onclick="openFinder('${e.data[1][1]}')">Show</button>`
M.toast({ html: show, displayLength: 5000 }) M.toast({ html: show, displayLength: 5000 })
} else if (e.data[0] == 'parseColumn') { } else if (e.data[0] == 'parseColumn') {
parseColumn(e.data[1]) parseColumn(e.data[1])

View File

@ -95,7 +95,7 @@ function imageXhr(id, key, murl) {
'loadend', 'loadend',
function(event) { function(event) {
var total = event.total var total = event.total
$('#imgbyte').text(Math.floor(total/1024)) $('#imgbyte').text(Math.floor(total / 1024))
var now = event.loaded var now = event.loaded
var per = (now / total) * 100 var per = (now / total) * 100
$('#imgprog').text(Math.floor(per)) $('#imgprog').text(Math.floor(per))
@ -266,9 +266,8 @@ function dlImg() {
if (remote_img == 'yes') { if (remote_img == 'yes') {
murl = ourl murl = ourl
} }
if (localStorage.getItem('savefolder')) { var save = localStorage.getItem('savefolder')
var save = localStorage.getItem('savefolder') if (!save || save == 'null') {
} else {
var save = '' var save = ''
} }
postMessage(['generalDL', [murl, save, false]], '*') postMessage(['generalDL', [murl, save, false]], '*')