fixed co author relation save button
This commit is contained in:
parent
dae3f069ff
commit
228dd1b767
|
@ -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 />")
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<div class="overview" content-layout="datalist" per-column="4" base-width="300" pagination-var="page">
|
||||||
<ul>
|
<ul>
|
||||||
<% @conference_co_author_relations.each_with_index do |conference_co_author_relation,i| %>
|
<% @conference_co_author_relations.each_with_index do |conference_co_author_relation,i| %>
|
||||||
<li class="s_grid_row" item="true">
|
<li class="s_grid_row" item="true">
|
||||||
|
@ -9,3 +10,4 @@
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
|
@ -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="4" base-width="300" pagination-var="page">
|
|
||||||
<%= render :partial => 'show_form'%>
|
<%= render :partial => 'show_form'%>
|
||||||
</div>
|
|
||||||
<!-- </div>
|
<!-- </div>
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
|
|
|
@ -211,7 +211,8 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
|
||||||
this.initializeJournalPapers.coauthorRelationEditForm = function(data){
|
this.initializeJournalPapers.coauthorRelationEditForm = function(data){
|
||||||
if(data.success){
|
if(data.success){
|
||||||
o.notify(data.msg,"success");
|
o.notify(data.msg,"success");
|
||||||
$("#co_author_relation_table").html(data.newvalue);
|
var x = o.layout_data.generate_layout_html(data.newvalue);
|
||||||
|
$("div[container=true] div.overview").html(x.markup);
|
||||||
}else{
|
}else{
|
||||||
o.notify(data.msg,"alert");
|
o.notify(data.msg,"alert");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<div class="overview" content-layout="datalist" per-column="5" base-width="300" pagination-var="page">
|
||||||
<ul>
|
<ul>
|
||||||
<% @journal_co_author_relations.each_with_index do |journal_co_author_relation,i| %>
|
<% @journal_co_author_relations.each_with_index do |journal_co_author_relation,i| %>
|
||||||
<li class="s_grid_row" item="true">
|
<li class="s_grid_row" item="true">
|
||||||
|
@ -9,3 +10,4 @@
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
|
@ -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