[Groonga-commit] groonga/groonga [master] admin: fix record edit button shows wrong record

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Oct 6 10:45:30 JST 2012


Kouhei Sutou	2012-10-06 10:45:30 +0900 (Sat, 06 Oct 2012)

  New Revision: 6edb5299d7345aa31bcf9a69147649d0b761dd90
  https://github.com/groonga/groonga/commit/6edb5299d7345aa31bcf9a69147649d0b761dd90

  Log:
    admin: fix record edit button shows wrong record
    
    It showed the last record.
    
    GitHub: fix #34
    
    Reported by firewood. Thanks!!!

  Modified files:
    data/html/admin/js/groonga-admin.js

  Modified: data/html/admin/js/groonga-admin.js (+2 -1)
===================================================================
--- data/html/admin/js/groonga-admin.js    2012-10-05 19:37:58 +0900 (cea9a06)
+++ data/html/admin/js/groonga-admin.js    2012-10-06 10:45:30 +0900 (10d35ad)
@@ -548,8 +548,9 @@ jQuery.extend(GroongaAdmin.prototype, {
               td.append($('<input/>')
                         .attr("type", "button")
                         .attr("value", "編集")
+                        .attr("data-record-id", line[0])
                         .click(function () {
-                          that.show_edit_record(line[0]);
+                          that.show_edit_record($(this).attr("data-record-id"));
                         }));
               break;
             case 2: // Table
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index