Skip to content

Commit

Permalink
Using class as an object attribute key crashes phantomjs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyatom committed Jan 27, 2012
1 parent 50a7ae4 commit 374ef52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/admin/organisation_contact_form.js
Expand Up @@ -38,7 +38,8 @@
}; };


var addLinkToCloneEmptyFields = function() { var addLinkToCloneEmptyFields = function() {
var link = $.a('Add new contact', {class: 'button add_new'}).click(function () { var link = $.a('Add new contact', {'class': 'button add_new'});
link.click(function () {
addNewContact(); return false; addNewContact(); return false;
}) })
self.after(link); self.after(link);
Expand Down

0 comments on commit 374ef52

Please sign in to comment.