fixed #181
This commit is contained in:
parent
b65f20b38c
commit
3c68538ebf
|
@ -70,7 +70,8 @@
|
||||||
text-shadow: 0px 1px 0px #2c2c2c;
|
text-shadow: 0px 1px 0px #2c2c2c;
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame li:hover {
|
.frame li:hover,
|
||||||
|
.zeroclipboard-is-hover {
|
||||||
background-color: #3875D7;
|
background-color: #3875D7;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
||||||
|
|
|
@ -66,7 +66,8 @@
|
||||||
background-color: #F8F8F8;
|
background-color: #F8F8F8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame li:hover {
|
.frame li:hover,
|
||||||
|
.zeroclipboard-is-hover {
|
||||||
background-color: #3875D7;
|
background-color: #3875D7;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
||||||
|
|
|
@ -47,6 +47,8 @@ var editors = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initClose: function () {
|
_initClose: function () {
|
||||||
|
new ZeroClipboard($("#copyFilePath"));
|
||||||
|
|
||||||
// 关闭、关闭其他、关闭所有
|
// 关闭、关闭其他、关闭所有
|
||||||
$(".edit-panel").on("mousedown", '.tabs > div', function (event) {
|
$(".edit-panel").on("mousedown", '.tabs > div', function (event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
@ -65,6 +67,8 @@ var editors = {
|
||||||
"left": left + "px",
|
"left": left + "px",
|
||||||
"top": "21px"
|
"top": "21px"
|
||||||
}).data('index', $(this).data("index"));
|
}).data('index', $(this).data("index"));
|
||||||
|
|
||||||
|
$("#copyFilePath").attr('data-clipboard-text', $(this).find("span:eq(0)").attr("title"));
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -182,6 +182,9 @@
|
||||||
<li onclick="editors.closeOther()" title="{{.i18n.close_other}}">
|
<li onclick="editors.closeOther()" title="{{.i18n.close_other}}">
|
||||||
<span>{{.i18n.close_other}}</span>
|
<span>{{.i18n.close_other}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li id="copyFilePath" title="Copy file path">
|
||||||
|
<span>Copy file path</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="tabs"></div>
|
<div class="tabs"></div>
|
||||||
|
@ -369,6 +372,12 @@
|
||||||
<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/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.fileupload.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/tabs.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/tabs.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/dialog.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/dialog.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/editors.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/editors.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
|
@ -380,9 +389,5 @@
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/windows.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/windows.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/hotkeys.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/hotkeys.js?{{.conf.StaticResourceVersion}}"></script>
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/bottomGroup.js?{{.conf.StaticResourceVersion}}"></script>
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/bottomGroup.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.fileupload.js?{{.conf.StaticResourceVersion}}"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue