Skip to content

Commit

Permalink
[#796] input-many add button behaves strangely in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Nov 22, 2010
1 parent e433c14 commit 6d58f53
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 @@ -635,7 +635,7 @@ new HoboBehavior("ul.input-many", {
Event.stop(ev);
var ul = el.up('ul.input-many'), li = el.up('li.input-many-li');

if(li.id.search(/\[-1\]/ && ul.immediateDescendants().length>2)>=0) {
if(li.id.search(/\[-1\]/)>=0 && ul.immediateDescendants().length>2) {
/* if(console) console.log("IE7 messed up again (bug 605)"); */
return;
}
Expand Down

0 comments on commit 6d58f53

Please sign in to comment.