This commit is contained in:
Van 2014-12-02 15:17:25 +08:00
parent b65f20b38c
commit 3c68538ebf
7 changed files with 28 additions and 6 deletions

View File

@ -70,7 +70,8 @@
text-shadow: 0px 1px 0px #2c2c2c;
}
.frame li:hover {
.frame li:hover,
.zeroclipboard-is-hover {
background-color: #3875D7;
color: #FFF;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);

View File

@ -66,7 +66,8 @@
background-color: #F8F8F8;
}
.frame li:hover {
.frame li:hover,
.zeroclipboard-is-hover {
background-color: #3875D7;
color: #FFF;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);

View File

@ -47,6 +47,8 @@ var editors = {
}
},
_initClose: function () {
new ZeroClipboard($("#copyFilePath"));
// 关闭、关闭其他、关闭所有
$(".edit-panel").on("mousedown", '.tabs > div', function (event) {
event.stopPropagation();
@ -65,6 +67,8 @@ var editors = {
"left": left + "px",
"top": "21px"
}).data('index', $(this).data("index"));
$("#copyFilePath").attr('data-clipboard-text', $(this).find("span:eq(0)").attr("title"));
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.

View File

@ -182,6 +182,9 @@
<li onclick="editors.closeOther()" title="{{.i18n.close_other}}">
<span>{{.i18n.close_other}}</span>
</li>
<li id="copyFilePath" title="Copy file path">
<span>Copy file path</span>
</li>
</ul>
</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-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/dialog.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/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/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>
</html>