socialforge/app/views/contestant_works/update.js.erb

12 lines
408 B
Plaintext

hideModal();
<% if @submit_result%>
var htmlvalue = '<%= escape_javascript(render :partial => 'contestant_works/work_edit_information') %>';
pop_box_new(htmlvalue, 500, 400);
<% else %>
window.location.href = '<%= edit_contestant_work_path(@work)%>';
<% end %>
function clickCanel() {
hideModal('#popbox02');
window.location.href= "<%= contestant_works_path(:work =>@contestwork.id, :tab => 2) %>"
}