diff --git a/i18n/en_US.json b/i18n/en_US.json index 939f54e..4fe8b4f 100644 --- a/i18n/en_US.json +++ b/i18n/en_US.json @@ -160,5 +160,6 @@ "no_empty": "Can not Empty!", "change_avatar": "Avatar modify go", "open": "Open", - "pricing": "Pricing" + "pricing": "Pricing", + "search_no_match": "No matching files were found." } \ No newline at end of file diff --git a/i18n/ja_JP.json b/i18n/ja_JP.json index 9ae2bb1..44f8cc6 100644 --- a/i18n/ja_JP.json +++ b/i18n/ja_JP.json @@ -160,5 +160,6 @@ "no_empty": "空ではありません", "change_avatar": "アバターの変更は行く", "open": "オープン", - "pricing": "价格" + "pricing": "价格", + "search_no_match": "一致するファイルが見つかりませんでした。" } diff --git a/i18n/zh_CN.json b/i18n/zh_CN.json index 38f6218..25b7f29 100644 --- a/i18n/zh_CN.json +++ b/i18n/zh_CN.json @@ -160,5 +160,6 @@ "no_empty": "不能为空", "change_avatar": "头像修改请到", "open": "打开", - "pricing": "价格" + "pricing": "价格", + "search_no_match": "没有发现匹配的文件。" } \ No newline at end of file diff --git a/i18n/zh_TW.json b/i18n/zh_TW.json index ab5d6ca..6c2a870 100644 --- a/i18n/zh_TW.json +++ b/i18n/zh_TW.json @@ -160,5 +160,6 @@ "no_empty": "不能為空", "change_avatar": "頭像修改請到", "open": "打開", - "pricing": "價格" + "pricing": "價格", + "search_no_match": "沒有發現匹配的文件。" } \ No newline at end of file diff --git a/static/js/editors.js b/static/js/editors.js index 7e7a4cb..432d3b2 100644 --- a/static/js/editors.js +++ b/static/js/editors.js @@ -646,6 +646,10 @@ var editors = { + data[i].line + '" data-ch="' + data[i].ch + '"> (' + data[i].line + ':' + data[i].ch + ')'; } + + if (data.length === 0) { + searcHTML += '
  • ' + config.label.search_no_match + '
  • '; + } searcHTML += ''; var $search = $('.bottom-window-group .search'), diff --git a/static/js/tabs.js b/static/js/tabs.js index 36c31ec..c930cf7 100644 --- a/static/js/tabs.js +++ b/static/js/tabs.js @@ -23,6 +23,19 @@ var Tabs = function (obj) { this.obj.STACKSIZE = 64; this._init(obj); + + // DOM 元素存在时,应顺序入栈 + var _it = this; + $(obj.id + " > .tabs > div").each(function () { + var id = $(this).data("index"); + if (obj._stack.length === _it.obj.STACKSIZE) { + obj._stack.splice(0, 1); + } + if (obj._stack[obj._stack.length - 1] !== id) { + _it.obj._stack.push(id); + } + }); + }; $.extend(Tabs.prototype, { diff --git a/views/index.html b/views/index.html index d3c6f8d..6ab5245 100644 --- a/views/index.html +++ b/views/index.html @@ -585,7 +585,8 @@ "uptodate": "{{.i18n.uptodate}}", "perference": "{{.i18n.perference}}", "apply": "{{.i18n.apply}}", - "no_empty": "{{.i18n.no_empty}}" + "no_empty": "{{.i18n.no_empty}}", + "search_no_match": "{{.i18n.search_no_match}}" }, "channel": {{.conf.Channel}}, "wideSessionId": '{{.session.ID}}',