vendor/plugins/refinery_dialogs/app/views/admin/dialogs/show.html.erb in refinerycms-0.9.6.34 vs vendor/plugins/refinery_dialogs/app/views/admin/dialogs/show.html.erb in refinerycms-0.9.7

- old
+ new

@@ -1,20 +1,19 @@ -<form class='wym_dialog wym_dialog_<%= @dialog_type %>'> +<form id='wym_dialog_form' class='wym_dialog wym_dialog_<%= @dialog_type %>'> <input type='hidden' id='wym_dialog_type' class='wym_dialog_type' value='<%= @dialog_type %>' /> <iframe src='<%= @iframe_src %>' id='dialog_frame' frameborder='0'></iframe> <div class='wym_hideables'> <% if @dialog_type == "image" %> - <input type='text' id='wym_src' class='wym_src' value='' size='40' /> - <input type='text' id='wym_alt' class='wym_alt' value='' size='40' /> - <input type='text' id='wym_title' class='wym_title' value='' size='40' /> + <input type='hidden' id='wym_src' class='wym_src' value='' /> + <input type='hidden' id='wym_alt' class='wym_alt' value='' /> + <input type='hidden' id='wym_title' class='wym_title' value='' /> + <input type='hidden' id='wym_size' class='wym_size' value='' /> <% elsif @dialog_type == "link" %> - <input type='text' id='wym_href' class='wym_href' value='' size='40' /> - <input type='text' id='wym_title' class='wym_title' value='' size='40' /> - <input type='text' id='wym_target' class='wym_target' value='' size='40' /> + <input type='hidden' id='wym_href' class='wym_href' value='' /> + <input type='hidden' id='wym_title' class='wym_title' value='' /> + <input type='hidden' id='wym_target' class='wym_target' value='' /> <% end %> - </div> - <div id='dialog-form-actions' class='form-actions'> - <input class='wym_submit submit_dialog' type='button' value='<%= @submit_button_text ||= 'Save' %>' /> - or - <a href='' class='wym_cancel close_dialog'><%= @cancel_button_text ||= 'Cancel' %></a> + + <input id='wym_dialog_submit' class='wym_submit submit_dialog button' type='button' value='<%= @submit_button_text ||= 'Save' %>' /> + <a id='wym_dialog_cancel' href='' class='wym_cancel close_dialog button'><%= @cancel_button_text ||= 'Cancel' %></a> </div> </form>