Commit db802fb5 by Giulio Gratta

update code to reflect comment

parent 1fad68b5
......@@ -54,7 +54,7 @@ class @TrackChanges
keyOfLatestChange = 0
@tracked_changes = @$(@tracked_changes_sel)
@tracked_changes.each ->
key = parseInt($(@).attr('data-cid'))
key = $(@).data('cid')
if key > keyOfLatestChange
keyOfLatestChange = key
@tracker.rejectChange('[data-cid="'+ keyOfLatestChange + '"]')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment