This commit is contained in:
parent
de20c46e4e
commit
53a2350dfd
|
@ -144,13 +144,7 @@ var tree = {
|
||||||
|
|
||||||
$("#dialogRenamePrompt").dialog("open");
|
$("#dialogRenamePrompt").dialog("open");
|
||||||
},
|
},
|
||||||
export: function (it) {
|
export: function () {
|
||||||
if (it) {
|
|
||||||
if ($(it).hasClass("disabled")) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var request = newWideRequest();
|
var request = newWideRequest();
|
||||||
request.path = wide.curNode.path;
|
request.path = wide.curNode.path;
|
||||||
|
|
||||||
|
@ -179,13 +173,7 @@ var tree = {
|
||||||
|
|
||||||
tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh", true);
|
tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh", true);
|
||||||
},
|
},
|
||||||
import: function (it) {
|
import: function () {
|
||||||
if (it) {
|
|
||||||
if ($(it).hasClass("disabled")) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var request = newWideRequest();
|
var request = newWideRequest();
|
||||||
request.path = wide.curNode.path;
|
request.path = wide.curNode.path;
|
||||||
|
|
||||||
|
@ -195,6 +183,9 @@ var tree = {
|
||||||
formData: request,
|
formData: request,
|
||||||
done: function (e, data) {
|
done: function (e, data) {
|
||||||
tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh");
|
tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh");
|
||||||
|
},
|
||||||
|
fail: function () {
|
||||||
|
console.log(arguments);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -382,7 +382,8 @@
|
||||||
<div class="tabs-panel">
|
<div class="tabs-panel">
|
||||||
<div data-index="filreTree">
|
<div data-index="filreTree">
|
||||||
<ul id="files" tabindex="-1" class="ztree"></ul>
|
<ul id="files" tabindex="-1" class="ztree"></ul>
|
||||||
<input id="importFileupload" type="file" name="files[]" style="display: none;" onclick="tree.import();" multiple>
|
<input id="importFileupload" class="fn-none" type="file"
|
||||||
|
name="files[]" onclick="tree.import();" multiple>
|
||||||
<!-- directory context menu -->
|
<!-- directory context menu -->
|
||||||
<div id="dirRMenu" class="frame">
|
<div id="dirRMenu" class="frame">
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -405,7 +406,7 @@
|
||||||
<li onclick="$('#importFileupload').click();">
|
<li onclick="$('#importFileupload').click();">
|
||||||
<span class="ico-import font-ico"></span> {{.i18n.import}}
|
<span class="ico-import font-ico"></span> {{.i18n.import}}
|
||||||
</li>
|
</li>
|
||||||
<li onclick="tree.export(this);">
|
<li onclick="tree.export();">
|
||||||
<span class="ico-export font-ico"></span> {{.i18n.export}}
|
<span class="ico-export font-ico"></span> {{.i18n.export}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -639,7 +640,7 @@
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/js-beautify-1.5.4/beautify-html.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/js-beautify-1.5.4/beautify-html.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/js-beautify-1.5.4/beautify-css.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/js-beautify-1.5.4/beautify-css.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/zeroclipboard/ZeroClipboard.min.js?{{.conf.StaticResourceVersion}}"></script>
|
<!--script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/zeroclipboard/ZeroClipboard.min.js?{{.conf.StaticResourceVersion}}"></script-->
|
||||||
|
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-file-upload-9.8.0/vendor/jquery.ui.widget.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-file-upload-9.8.0/vendor/jquery.ui.widget.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-file-upload-9.8.0/jquery.iframe-transport.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-file-upload-9.8.0/jquery.iframe-transport.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
|
|
Loading…
Reference in New Issue