diff --git a/admin/common-js.php b/admin/common-js.php index 1014daea..8aafb0b5 100644 --- a/admin/common-js.php +++ b/admin/common-js.php @@ -15,7 +15,8 @@ $('.typecho-list-table').tableSelectable({ checkEl : 'input[type=checkbox]', rowEl : 'tr', - selectAllEl : '.typecho-table-select-all' + selectAllEl : '.typecho-table-select-all', + actionEl : '.dropdown-menu a' }); $('.btn-drop').dropdownMenu({ diff --git a/admin/css/style.css b/admin/css/style.css index 2525745a..950224e0 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -241,7 +241,9 @@ select { } button { - line-height: 22px; height: 26px; vertical-align: middle; + height: 28px; + vertical-align: middle; + zoom: 1; display: inline-block; color: #666; font-size: 13px; @@ -1317,7 +1319,7 @@ margin-top: 25px; .typecho-list-operate button { height: 24px; - line-height: 24px; + zoom: 1; } .typecho-list-operate .operate { diff --git a/admin/javascript/typecho.js b/admin/javascript/typecho.js index d160c17c..233dc2ef 100644 --- a/admin/javascript/typecho.js +++ b/admin/javascript/typecho.js @@ -22,7 +22,8 @@ var table = this, s = $.extend({ checkEl : null, rowEl : null, - selectAllEl : null + selectAllEl : null, + actionEl : null }, options); function clickRow (t) { @@ -57,6 +58,16 @@ }).removeClass('checked'); } }); + + $(s.actionEl).click(function () { + var t = $(this), lang = t.attr('lang'); + + if (!lang || confirm(lang)) { + table.parents('form').attr('action', t.attr('href')).submit(); + } + + return false; + }); }; })($); diff --git a/admin/manage-pages.php b/admin/manage-pages.php index a17853f5..17341ee3 100644 --- a/admin/manage-pages.php +++ b/admin/manage-pages.php @@ -12,19 +12,22 @@ $stat = Typecho_Widget::widget('Widget_Stat');
+
- have()): ?> diff --git a/admin/manage-users.php b/admin/manage-users.php index a5151630..752610ea 100644 --- a/admin/manage-users.php +++ b/admin/manage-users.php @@ -21,7 +21,7 @@ include 'menu.php'; keywords): ?> - keywords): ?> onclick="value='';name='keywords';" name="keywords"/> +