mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove unused code
This commit is contained in:
parent
62bdf22618
commit
4cdd2bf776
@ -133,7 +133,7 @@
|
|||||||
<button class="btn btn-primary mr-2" id="root_files_button" type="button">{{ translate('serverWizard', 'clickRoot', data['lang']) }}</button>
|
<button class="btn btn-primary mr-2" id="root_files_button" type="button">{{ translate('serverWizard', 'clickRoot', data['lang']) }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -367,7 +367,7 @@ function hide(event) {
|
|||||||
}catch{
|
}catch{
|
||||||
document.getElementById('files-tree').innerHTML = text;
|
document.getElementById('files-tree').innerHTML = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByClassName('files-tree-title')[0].setAttribute('data-path', serverDir);
|
document.getElementsByClassName('files-tree-title')[0].setAttribute('data-path', serverDir);
|
||||||
document.getElementsByClassName('files-tree-title')[0].setAttribute('data-name', 'Files');
|
document.getElementsByClassName('files-tree-title')[0].setAttribute('data-name', 'Files');
|
||||||
@ -382,7 +382,7 @@ function hide(event) {
|
|||||||
document.getElementById(path+"span").classList.toggle("tree-caret-down");
|
document.getElementById(path+"span").classList.toggle("tree-caret-down");
|
||||||
document.getElementById(path+"span").classList.toggle("tree-caret");
|
document.getElementById(path+"span").classList.toggle("tree-caret");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getDirView(event) {
|
function getDirView(event) {
|
||||||
path = event.target.parentElement.getAttribute('data-path');
|
path = event.target.parentElement.getAttribute('data-path');
|
||||||
@ -417,7 +417,7 @@ function hide(event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var toggler = document.getElementById(path);
|
var toggler = document.getElementById(path);
|
||||||
|
|
||||||
if (toggler.classList.contains('files-tree-title')){
|
if (toggler.classList.contains('files-tree-title')){
|
||||||
document.getElementById(path+"span").addEventListener("click", function caretListener() {
|
document.getElementById(path+"span").addEventListener("click", function caretListener() {
|
||||||
document.getElementById(path+"ul").classList.toggle("d-block");
|
document.getElementById(path+"ul").classList.toggle("d-block");
|
||||||
@ -442,27 +442,10 @@ function hide(event) {
|
|||||||
document.getElementById('main-tree-input').setAttribute('value', data.path)
|
document.getElementById('main-tree-input').setAttribute('value', data.path)
|
||||||
getTreeView(data.path);
|
getTreeView(data.path);
|
||||||
show_file_tree();
|
show_file_tree();
|
||||||
|
|
||||||
}, 5000);
|
}, 5000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
{% end %}
|
||||||
//<![CDATA[
|
|
||||||
// array of possible countries in the same order as they appear in the country selection list
|
|
||||||
|
|
||||||
function decodeHtmlCharCodes(str) {
|
|
||||||
return str.replace(""", "\"");
|
|
||||||
}
|
|
||||||
|
|
||||||
function convertHtmlJsonToJavacriptArray(str) {
|
|
||||||
var result = []
|
|
||||||
str = decodeHtmlCharCodes(str)
|
|
||||||
for(var i in str)
|
|
||||||
result.push([i, str [i]]);
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
{% end %}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user