Fix #67
This commit is contained in:
parent
4e078d31d1
commit
ffea905ff4
|
@ -111,5 +111,6 @@
|
|||
"team": "Team",
|
||||
"sing_up_error": "Sign Up Error",
|
||||
"user_name_ruler": "Username only by az, AZ, 0-9, _ consisting of a length of 16",
|
||||
"password_no_match": "Password doesn't match the confirmation"
|
||||
"password_no_match": "Password doesn't match the confirmation",
|
||||
"discard": "Discard"
|
||||
}
|
|
@ -111,5 +111,6 @@
|
|||
"team": "チーム",
|
||||
"sing_up_error": "登録に失敗しました",
|
||||
"user_name_ruler": "16の長さからなる_ AZ、AZ、0-9、によってユーザ名のみ",
|
||||
"password_no_match": "一貫性のないパスワード入力"
|
||||
"password_no_match": "一貫性のないパスワード入力",
|
||||
"discard": "あきらめる"
|
||||
}
|
||||
|
|
|
@ -111,5 +111,6 @@
|
|||
"team": "团队",
|
||||
"sing_up_error": "注册失败",
|
||||
"user_name_ruler": "用户名只能由 a-z, A-Z, 0-9, _ 组成,长度为16",
|
||||
"password_no_match": "密码输入不一致"
|
||||
"password_no_match": "密码输入不一致",
|
||||
"discard": "放弃"
|
||||
}
|
|
@ -111,5 +111,6 @@
|
|||
"team": "團隊",
|
||||
"sing_up_error": "註冊失敗",
|
||||
"user_name_ruler": "用戶名只能由az, AZ, 0-9, _ 組成,長度為16",
|
||||
"password_no_match": "密碼輸入不一致"
|
||||
"password_no_match": "密碼輸入不一致",
|
||||
"discard": "放棄"
|
||||
}
|
|
@ -64,7 +64,8 @@
|
|||
text-align: right;
|
||||
}
|
||||
|
||||
.dialog-footer button {
|
||||
.dialog-footer button,
|
||||
#dialogCloseEditor button {
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
|
|
|
@ -264,11 +264,11 @@
|
|||
$("." + styleClass.background).show();
|
||||
}
|
||||
|
||||
$("#" + id + "Dialog .dialog-footer button:eq(0)").focus();
|
||||
|
||||
if (typeof settings.afterOpen === "function") {
|
||||
settings.afterOpen(msg);
|
||||
}
|
||||
|
||||
$("#" + id + "Dialog .dialog-footer button:eq(0)").focus();
|
||||
},
|
||||
_updateDialog: function (target, data) {
|
||||
var inst = this._getInst(target);
|
||||
|
|
|
@ -4,10 +4,15 @@ var editors = {
|
|||
init: function () {
|
||||
$("#dialogCloseEditor").dialog({
|
||||
"modal": true,
|
||||
"height": 26,
|
||||
"height": 66,
|
||||
"width": 260,
|
||||
"title": config.label.tip,
|
||||
"hideFooter": true,
|
||||
"afterOpen": function (fileName) {
|
||||
$("#dialogCloseEditor > div:eq(0)").html(config.label.file
|
||||
+ ' <b>' + fileName + '</b>. ' + config.label.confirm_save + '?');
|
||||
$("#dialogCloseEditor button:eq(0)").focus();
|
||||
},
|
||||
"afterInit": function () {
|
||||
$("#dialogCloseEditor button.save").click(function () {
|
||||
var i = $("#dialogCloseEditor").data("index");
|
||||
|
@ -60,7 +65,8 @@ var editors = {
|
|||
if (editors.data[i].editor.doc.isClean()) {
|
||||
return true;
|
||||
} else {
|
||||
$("#dialogCloseEditor").dialog("open");
|
||||
$("#dialogCloseEditor").dialog("open", $(".edit-panel .tabs > div[data-index="
|
||||
+ editors.data[i].id + "] > span:eq(0)").text());
|
||||
$("#dialogCloseEditor").data("index", i);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -223,9 +223,12 @@
|
|||
<input placeholder="{{.i18n.file_format}}" />
|
||||
</div>
|
||||
<div id="dialogCloseEditor" class="dialog-form fn-none">
|
||||
<button class="save">save</button>
|
||||
<button class="discard">discard</button>
|
||||
<button class="cancel">cancel</button>
|
||||
<div></div><br/>
|
||||
<div class="fn-right">
|
||||
<button class="save">{{.i18n.save}}</button>
|
||||
<button class="discard">{{.i18n.discard}}</button>
|
||||
<button class="cancel">{{.i18n.cancel}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var config = {
|
||||
|
@ -254,6 +257,7 @@
|
|||
"about": "{{.i18n.about}}",
|
||||
"new_version_available": "{{.i18n.new_version_available}}",
|
||||
"colon": "{{.i18n.colon}}",
|
||||
"file": "{{.i18n.file}}",
|
||||
"uptodate": "{{.i18n.uptodate}}"
|
||||
},
|
||||
"channel": {
|
||||
|
|
Loading…
Reference in New Issue