From cfd50273964a124c8e3d276e5b7c8b2e15d81578 Mon Sep 17 00:00:00 2001 From: Van Date: Sun, 4 Jan 2015 15:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=89=80=E6=9C=89=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/dialog.css | 4 ++++ static/js/tabs.js | 4 ++++ static/js/wide.js | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/static/css/dialog.css b/static/css/dialog.css index 6185900..6f23c7d 100644 --- a/static/css/dialog.css +++ b/static/css/dialog.css @@ -63,6 +63,10 @@ text-decoration: none; } +.dialog-close-icon:hover { + text-decoration: none; +} + .dialog-main > div { width: 100%; } diff --git a/static/js/tabs.js b/static/js/tabs.js index e8f0015..4e456bf 100644 --- a/static/js/tabs.js +++ b/static/js/tabs.js @@ -43,6 +43,10 @@ $.extend(Tabs.prototype, { var _that = this; obj._$tabs.on("click", "div", function (event) { + if ($(this).hasClass('current')) { + return false; + } + var id = $(this).data("index"); _that.setCurrent(id); if (typeof (obj.clickAfter) === "function") { diff --git a/static/js/wide.js b/static/js/wide.js index ad75ec6..1a79889 100644 --- a/static/js/wide.js +++ b/static/js/wide.js @@ -30,6 +30,7 @@ var wide = { $.ajax({ type: 'POST', + async: false, url: config.context + '/outline', data: JSON.stringify(request), dataType: "json", @@ -85,7 +86,7 @@ var wide = { $("#dialogAlert").dialog({ "modal": true, - "height": 26, + "height": 36, "width": 260, "title": config.label.tip, "hiddenOk": true,