This commit is contained in:
Van 2014-09-24 11:35:03 +08:00
parent 790a3116e5
commit 6730017aec
8 changed files with 68 additions and 57 deletions

View File

@ -34,5 +34,7 @@
"notification_3": "没有检查到 ide_stub这将会导致 [跳转到声明]、[查找使用] 失效",
"goto_line": "跳转到行",
"goto": "跳转",
"input_no_empty": "输入不能为空"
"input_no_empty": "输入不能为空",
"tip": "提示",
"confirm": "确定"
}

View File

@ -74,6 +74,19 @@ ul {
.icon-buildrun:before {
content: "\e607";
}
.ico-close {
color: #666;
}
.ico-close:hover {
color: #333;
}
.ico-close:before {
content: "\e60a";
cursor: pointer;
}
/* end reset & function */
/* start frame */
@ -133,20 +146,6 @@ ul {
.tabs > div.current {
background-color: #F7F7F7;
}
.tabs .ico-close {
color: #666;
}
.tabs .ico-close:hover {
color: #333;
}
.tabs .ico-close:before {
content: "\e60a";
cursor: pointer;
}
/* end tabs */
/* start framework */

View File

@ -43,16 +43,9 @@
}
.dialog-close-icon {
background-position: -15px 0;
cursor: pointer;
float: right;
height: 18px;
margin: 5px 3px 0 0;
width: 18px;
}
.dialog-close-icon:hover {
background-position: -15px -18px;
margin: 3px;
text-decoration: none;
}
.dialog-main {
@ -71,7 +64,8 @@
}
#dialogRemoveConfirm,
.dialog-prompt {
.dialog-prompt,
#dialogAlert {
padding: 10px 20px 0;
overflow: hidden;
}

View File

@ -99,13 +99,16 @@
headerHTML = "<div class='"
+ styleClass.headerBg + "'><div class='"
+ styleClass.title + "'>"
+ settings.title + "</div><a href='javascript:void(0);' class='"
+ settings.title + "</div><a href='javascript:void(0);' class='ico-close font-ico "
+ styleClass.closeIcon + "'></a></div>";
// Sets footerHTML.
if (!settings.hideFooter) {
if (!settings.hiddenOk) {
footerHTML = "<button>" + settings.okText +
"</button><button>"
"</button>";
}
footerHTML += "<button>"
+ settings.cancelText + "</button>";
}
@ -244,7 +247,7 @@
settings = inst.settings;
$.dialog._close(id, settings);
},
_openDialog: function(target) {
_openDialog: function (target, msg) {
var inst = this._getInst(target);
var id = inst.id,
settings = inst.settings;
@ -259,7 +262,7 @@
$("#" + id + "Dialog .dialog-footer button:eq(0)").focus();
if (typeof settings.afterOpen === "function") {
settings.afterOpen();
settings.afterOpen(msg);
}
},
_updateDialog: function (target, data) {
@ -273,7 +276,7 @@
$dialog.css({
"top": data.position.top,
"left": data.position.left
})
});
}
if (data.width) {

View File

@ -161,7 +161,7 @@ var editors = {
dataType: "json",
success: function (data) {
if (!data.succ) {
alert(data.msg);
$("#dialogAlert").dialog("open", data.msg);
return false;
}

View File

@ -161,7 +161,7 @@ var tree = {
dataType: "json",
success: function (data) {
if (!data.succ) {
alert(data.msg);
$("#dialogAlert").dialog("open", data.msg);
return false;
}

View File

@ -67,6 +67,17 @@ var wide = {
curEditor: undefined,
bottomWindowTab: undefined,
_initDialog: function() {
$("#dialogAlert").dialog({
"height": 26,
"width": 260,
"title": config.label.tip,
"hiddenOk": true,
"cancelText": config.label.confirm,
"afterOpen": function(msg) {
$("#dialogAlert").html(msg);
}
});
$("#dialogRemoveConfirm").dialog({
"height": 26,
"width": 260,
@ -115,7 +126,6 @@ var wide = {
}
});
$(".dialog-prompt > input").keydown(function(event) {
$(".dialog-prompt > .tip").text('');

View File

@ -172,6 +172,7 @@
<div id="dialogRemoveConfirm">
{{.i18n.isDelete}} <b></b>?
</div>
<div id="dialogAlert"></div>
<div id="dialogNewFilePrompt" class="dialog-prompt">
<input/><span class="tip"></span>
</div>
@ -193,6 +194,8 @@
"create": "{{.i18n.create}}",
"create_file": "{{.i18n.create_file}}",
"create_dir": "{{.i18n.create_dir}}",
"tip": "{{.i18n.tip}}",
"confirm": "{{.i18n.confirm}}"
},
"channel": {
"editor": '{{.conf.EditorChannel}}',