Skip to content

Commit

Permalink
Scan for submit buttons in iframe#content only
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Jun 22, 2014
1 parent 9b9c7be commit 5250e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/static/cms/js/modules/cms.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ $(document).ready(function () {
// if there are no given buttons within the submit-row area
// scan deeper within the form itself
if(!buttons.length) {
row = iframe.contents().find('form:eq(0)');
row = iframe.contents().find('#content form:eq(0)');
buttons = row.find('input[type="submit"], button[type="submit"]');
buttons.attr('name', '_save')
.addClass('deletelink')
Expand Down

0 comments on commit 5250e53

Please sign in to comment.