fixed co author relation save button
This commit is contained in:
parent
764f83d58c
commit
44fede2b71
|
@ -40,7 +40,6 @@ class Panel::PersonalConference::Desktop::ConferenceCoAuthorRelationsController
|
||||||
if @conference_co_author_relation.update_attributes(params[:conference_co_author_relation])
|
if @conference_co_author_relation.update_attributes(params[:conference_co_author_relation])
|
||||||
@conference_co_author_relations = ConferenceCoAuthorRelation.all
|
@conference_co_author_relations = ConferenceCoAuthorRelation.all
|
||||||
newv = render_to_string partial: "show_form", object: @conference_co_author_relations
|
newv = render_to_string partial: "show_form", object: @conference_co_author_relations
|
||||||
newv = '<div class="overview" content-layout="datalist" per-column="4" base-width="300">' + newv + '</div>'
|
|
||||||
render json: {success: true, msg: t('update_success'), newvalue: newv}.to_json
|
render json: {success: true, msg: t('update_success'), newvalue: newv}.to_json
|
||||||
else
|
else
|
||||||
error_msg = @conference_co_author.errors.full_messages.join("<br />")
|
error_msg = @conference_co_author.errors.full_messages.join("<br />")
|
||||||
|
|
|
@ -15,9 +15,7 @@
|
||||||
<!-- <div id="co_author_relation_table" class="tinycanvas vp">
|
<!-- <div id="co_author_relation_table" class="tinycanvas vp">
|
||||||
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
|
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
|
||||||
<div class="viewport"> -->
|
<div class="viewport"> -->
|
||||||
<div class="overview" content-layout="datalist" per-column="5" base-width="300" pagination-var="page">
|
|
||||||
<%= render :partial => 'show_form'%>
|
<%= render :partial => 'show_form'%>
|
||||||
</div>
|
|
||||||
<!-- </div>
|
<!-- </div>
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
|
|
Reference in New Issue