Added a comment

This commit is contained in:
rjy7 2010-07-08 22:04:31 +00:00
parent bd5acb1ef0
commit bd00326e1e

View file

@ -521,8 +521,11 @@ var addAuthorForm = {
// authorName = authorLink.html();
if (status === 'success') {
// Both these cases can be replaced by calling a reorder. And we could
// do away with the position span altogether in that case.
// Both these cases can be replaced by calling a reorder:
// positions are not needed if we always eliminate gaps in rank
// (what about an error on the reorder call, though?)
// The reset of the rank hidden form field is done in the
// reorder callback.
if (nextAuthorships.length) {
// Reset the position value of each succeeding authorship
nextAuthorships.each(function() {