This commit is contained in:
Van 2014-11-06 14:41:46 +08:00
parent a44de44ded
commit 63184be644
8 changed files with 38 additions and 7 deletions

View File

@ -117,5 +117,6 @@
"password_no_match": "Password doesn't match the confirmation",
"discard": "Discard",
"close": "Close",
"close_other": "Close Other"
"close_other": "Close Other",
"clear": "Clear"
}

View File

@ -117,5 +117,6 @@
"password_no_match": "一貫性のないパスワード入力",
"discard": "あきらめる",
"close": "クローズ",
"close_other": "閉じるその他"
"close_other": "閉じるその他",
"clear": "空の"
}

View File

@ -117,5 +117,6 @@
"password_no_match": "密码输入不一致",
"discard": "放弃",
"close": "关闭",
"close_other": "关闭其它"
"close_other": "关闭其它",
"clear": "清空"
}

View File

@ -117,5 +117,6 @@
"password_no_match": "密碼輸入不一致",
"discard": "放棄",
"close": "關閉",
"close_other": "關閉其它"
"close_other": "關閉其它",
"clear": "清空"
}

View File

@ -144,7 +144,6 @@
/* start framework */
.content {
position: relative;
overflow: hidden;
}
/* end framework */

View File

@ -3,6 +3,31 @@ var bottomGroup = {
searchTab: undefined,
init: function () {
this._initTabs();
this._initFrame();
},
_initFrame: function () {
$(".bottom-window-group .output").mousedown(function (event) {
event.stopPropagation();
if (event.button === 0) { // 左键
$(".bottom-window-group .frame").hide();
return false;
}
// event.button === 2 右键
var left = event.screenX;
if ($(".side").css("left") === "auto" || $(".side").css("left") === "0px") {
left = event.screenX - $(".side").width();
}
$(".bottom-window-group .frame").show().css({
"left": left + "px",
"top": (event.offsetY + 20) + "px"
});
return false;
});
},
clear: function () {
$('.bottom-window-group .output > div').text('');
},
clearOutput: function () {
$('.bottom-window-group .output > div').text('');

View File

@ -14,6 +14,9 @@ var editors = {
removeData.push($(this).data("index"));
}
});
if (removeData.length === 0) {
return false;
}
var firstIndex = removeData.splice(0, 1);
$("#dialogCloseEditor").data("removeData", removeData);
// 开始关闭

View File

@ -175,8 +175,8 @@
<span title="{{.i18n.min}}" class="font-ico ico-min"></span>
<div class="frame">
<ul>
<li onclick="editors.close()" title="{{.i18n.close}}">
<span>{{.i18n.close}}</span>
<li onclick="bottomGroup.clear()" title="{{.i18n.clear}}">
<span>{{.i18n.clear}}</span>
</li>
</ul>
</div>