mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01:00
Merge branch 'bugfix/bedrock_root_files' into 'dev'
Fix logic in bedrock server import frontend See merge request crafty-controller/crafty-4!797
This commit is contained in:
commit
c59c5f960f
@ -3,7 +3,7 @@
|
|||||||
### New features
|
### New features
|
||||||
TBD
|
TBD
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
TBD
|
- Fix logic issue causing bedrock wizard's root files buttons to not respond to user click events ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/797))
|
||||||
### Tweaks
|
### Tweaks
|
||||||
TBD
|
TBD
|
||||||
### Lang
|
### Lang
|
||||||
|
@ -498,24 +498,19 @@
|
|||||||
<script src="../../static/assets/js/shared/upload.js"></script>
|
<script src="../../static/assets/js/shared/upload.js"></script>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById("root_upload_button").addEventListener("click", function (event) {
|
document.getElementById("root_upload_button").addEventListener("click", function (event) {
|
||||||
if (file) {
|
|
||||||
upload = true;
|
|
||||||
if (document.getElementById('root_upload_button').classList.contains('clicked')) {
|
if (document.getElementById('root_upload_button').classList.contains('clicked')) {
|
||||||
document.getElementById('main-tree-div-upload').innerHTML = '<input type="radio" class="root-input" id="main-tree-input-upload" name="root_path" value="" checked><span id="main-tree-upload" class="files-tree-title tree-caret-down root-dir"><i class="far fa-folder"></i><i class="far fa-folder-open"></i>{{ translate("serverFiles", "files", data["lang"]) }}</span></input>'
|
show_file_tree();
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('root_upload_button').classList.add('clicked')
|
document.getElementById('root_upload_button').classList.add('clicked')
|
||||||
}
|
}
|
||||||
const token = getCookie("_xsrf");
|
bootbox.dialog({
|
||||||
var dialog = bootbox.dialog({
|
|
||||||
message: '<p class="text-center mb-0"><i class="fa fa-spin fa-cog"></i> Please wait while we gather your files...</p>',
|
message: '<p class="text-center mb-0"><i class="fa fa-spin fa-cog"></i> Please wait while we gather your files...</p>',
|
||||||
closeButton: false
|
closeButton: false
|
||||||
});
|
});
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
getDirView();
|
getDirView();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
} else {
|
|
||||||
bootbox.alert("You must input a path before selecting this button");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function eula_confirm() {
|
function eula_confirm() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user