I have the following code which returns a syntax error on line 2 sales.js:2SyntaxError: Expected token ')' What's wrong with that?
$('<div id="new_contact_dialog"></div>')
.html('<%= escape_javascript render(:partial => 'choose_storage.html.erb') %>')
.dialog({
autoOpen: true,
modal: true,
title: 'Add a Contact%>',
buttons: { 'Create Contact' : function(){ $(this).find("form").submit(); }, 'Cancel' : function(){ $(this).dialog("close"); } },
show: "fade",
hide: "fade",
width: 420
});