This is not a primary key but a row number

This commit is contained in:
Marc Delisle
2010-12-19 05:42:40 -05:00
parent 02b9dc8008
commit 386581bcb6
3 changed files with 13 additions and 13 deletions

View File

@@ -430,10 +430,10 @@ $(document).ready(function() {
.find('.foreign_values_anchor')
.each(function() {
$anchor = $(this);
var new_value = 'pk=' + new_row_index;
var new_value = 'rownumber=' + new_row_index;
// needs improvement in case something else inside
// the href contains this pattern
var new_href = $anchor.attr('href').replace(/pk=\d+/, new_value);
var new_href = $anchor.attr('href').replace(/rownumber=\d+/, new_value);
$anchor.attr('href', new_href );
});