Skip to content

Commit

Permalink
[#604 state:resolved] input-many with >10 elements behaves strangely
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Jan 16, 2010
1 parent ee2511c commit 87c140a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/rails_generators/hobo_rapid/templates/hobo-rapid.js
Expand Up @@ -611,7 +611,7 @@ new HoboBehavior("ul.input-many", {

// given this==an input-many item, get the submit index
getIndex: function() {
return Number(this.id.match(/\[([0-9])+\]$/)[1]);
return Number(this.id.match(/\[([-0-9]+)\]$/)[1]);
},

/* For some reason, select() and down() and all those useful functions aren't working for us. Roll our own replacement. */
Expand Down

0 comments on commit 87c140a

Please sign in to comment.