Skip to content

Commit

Permalink
Fix preview button with WYMeditor (#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiomaster authored and Brice Sanchez committed Nov 8, 2016
1 parent f993963 commit da3e977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/app/views/refinery/admin/pages/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
, "<%= refinery.admin_page_parts_path %>"
);

$("#preview-button").click(function(e) {
$(document).on('click', '#preview-button', function(e) {
var $form = $(this).parents('form');
var prev_url = $form.attr('action');
var prev_target = $form.attr('target') || '';
Expand Down

0 comments on commit da3e977

Please sign in to comment.