Fix artist commentary dialog submitting wrong form.
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
width: 500,
|
||||
buttons: {
|
||||
"Submit": function() {
|
||||
$("#add-commentary-dialog form").submit();
|
||||
$("#add-commentary-dialog #edit-commentary").submit();
|
||||
$(this).dialog("close");
|
||||
},
|
||||
"Cancel": function() {
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('#add-commentary-dialog form').submit(function() {
|
||||
$('#add-commentary-dialog #edit-commentary').submit(function() {
|
||||
$('#add-commentary-dialog').dialog('close');
|
||||
});
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<%= form_tag(create_or_update_artist_commentaries_path(:format => :js), :remote => true, :class => "simple_form", :method => :put) do %>
|
||||
<%= form_tag(create_or_update_artist_commentaries_path(:format => :js), :remote => true, :id => "edit-commentary", :class => "simple_form", :method => :put) do %>
|
||||
<%= hidden_field :artist_commentary, :post_id, :value => @post.id %>
|
||||
|
||||
<div class="input">
|
||||
|
||||
Reference in New Issue
Block a user