Kouhei Sutou
null+****@clear*****
Sat Oct 6 10:47:57 JST 2012
Kouhei Sutou 2012-10-06 10:47:57 +0900 (Sat, 06 Oct 2012) New Revision: fc35fa31aa5ed23d08bdce577cee38bd49021f96 https://github.com/groonga/groonga/commit/fc35fa31aa5ed23d08bdce577cee38bd49021f96 Log: admin: fix table detail button shows wrong table It showed the last table. GitHub: fix #34 Reported by firewood. Thanks!!! Modified files: data/html/admin/js/groonga-admin.js Modified: data/html/admin/js/groonga-admin.js (+3 -1) =================================================================== --- data/html/admin/js/groonga-admin.js 2012-10-06 10:45:30 +0900 (10d35ad) +++ data/html/admin/js/groonga-admin.js 2012-10-06 10:47:57 +0900 (fba7274) @@ -559,8 +559,10 @@ jQuery.extend(GroongaAdmin.prototype, { td.append($('<input/>') .attr("type", "button") .attr("value", "詳細") + .attr("data-table-name", line[1]) .click(function () { - $("#side-menu-tablelist-link-" + line[1]).click(); + var tableName = $(this).attr("data-table-name"); + $("#side-menu-tablelist-link-" + tableName).click(); })); break; } -------------- next part -------------- HTML����������������������������...Download