From fd9f5b5c257bd157e526183ea13c56f30a9fa86c Mon Sep 17 00:00:00 2001 From: joyqi Date: Sun, 13 Oct 2013 10:40:17 +0800 Subject: [PATCH] fix tfoot --- admin/javascript/typecho.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/admin/javascript/typecho.js b/admin/javascript/typecho.js index c0efc459..f3e2610e 100644 --- a/admin/javascript/typecho.js +++ b/admin/javascript/typecho.js @@ -243,6 +243,15 @@ jQuery.tableDnD = { }; // Now make the rows draggable jQuery.tableDnD.makeDraggable(this); + + // fix chrome border bug + if (0 == $('tfoot', this).length + && 0 < $('thead', this).length) { + var h = $('thead', this), count = $('th', h).length; + + $('').insertAfter(h); + } }); // Now we need to capture the mouse up and mouse move event