fixed co author relation save button

This commit is contained in:
Rueshyna 2013-03-14 18:29:24 +08:00 committed by Matt K. Fu
parent 764f83d58c
commit 44fede2b71
2 changed files with 0 additions and 3 deletions

View File

@ -40,7 +40,6 @@ class Panel::PersonalConference::Desktop::ConferenceCoAuthorRelationsController
if @conference_co_author_relation.update_attributes(params[:conference_co_author_relation])
@conference_co_author_relations = ConferenceCoAuthorRelation.all
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
else
error_msg = @conference_co_author.errors.full_messages.join("<br />")

View File

@ -15,9 +15,7 @@
<!-- <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="viewport"> -->
<div class="overview" content-layout="datalist" per-column="5" base-width="300" pagination-var="page">
<%= render :partial => 'show_form'%>
</div>
<!-- </div>
</div>
-->