@@ -358,7 +359,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
}
functionremoveImportAlerts(){
importDropTarget.nextAll('.alert').remove()
$importDropTarget.nextAll('.alert').remove()
}
functionhandleConfigFileSelect(e){
...
...
@@ -380,9 +381,9 @@ window.onload = function () { // wait for load in a dumb way because B-0
}
updateCustomizerFromJson(json)
showAlert('success','<strong>Woohoo!</strong> Your configuration was successfully uploaded. Tweak your settings, then hit Download.',importDropTarget)
showAlert('success','<strong>Woohoo!</strong> Your configuration was successfully uploaded. Tweak your settings, then hit Download.',$importDropTarget)
}catch(err){
returnshowAlert('danger','<strong>Shucks.</strong> We can only read valid <code>.json</code> files. Please try again.',importDropTarget)
returnshowAlert('danger','<strong>Shucks.</strong> We can only read valid <code>.json</code> files. Please try again.',$importDropTarget)
}
}
...
...
@@ -398,7 +399,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
}
if(supportsFile){
importDropTarget
$importDropTarget
.on('dragover',handleConfigDragOver)
.on('drop',handleConfigFileSelect)
}
...
...
@@ -406,23 +407,23 @@ window.onload = function () { // wait for load in a dumb way because B-0