Browse Source

Add data-value to editable table. Remove data in anchor.

Ben Greene 11 years ago
parent
commit
4cc9029a73
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/extensions/editable/bootstrap-table-editable.js

+ 2 - 1
src/extensions/editable/bootstrap-table-editable.js

@@ -42,7 +42,8 @@
                 return ['<a href="javascript:void(0)"',
                     ' data-name="' + column.field + '"',
                     ' data-pk="' + row[that.options.idField] + '"',
-                    '>' + result + '</a>'
+                    ' data-vlaue="' + result + '"',
+                    '>' + '</a>'
                 ].join('');
             };
         });