view update

This commit is contained in:
devin 2012-12-05 17:51:36 +08:00 committed by chris
parent e7fdac1d23
commit a0cce2ae0d
2 changed files with 7 additions and 5 deletions

View File

@ -260,7 +260,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
o.tinyscrollbar_ext({ o.tinyscrollbar_ext({
main: '.tinycanvas', main: '.tinycanvas',
fill: '.s_grid_con' fill: '.g_col'
}) })
$("div[container=true]").unbind(".editcoauthor").on("click.editcoauthor", "a.bt-edit", function(){ $("div[container=true]").unbind(".editcoauthor").on("click.editcoauthor", "a.bt-edit", function(){
$.ajax({ $.ajax({

View File

@ -18,10 +18,12 @@
<%= link_to 'Edit', edit_desktop_co_author_path(co_author), :class => "bt-edit" %> <%= link_to 'Edit', edit_desktop_co_author_path(co_author), :class => "bt-edit" %>
<%= link_to 'Destroy', desktop_co_author_path(co_author), method: :delete, confirm: 'Are you sure?', :class=>"bt-delete" %> <%= link_to 'Destroy', desktop_co_author_path(co_author), method: :delete, confirm: 'Are you sure?', :class=>"bt-delete" %>
</div> </div>
<%= co_author.co_author %> <ul class="info">
<%= co_author.email %> <li><%= co_author.co_author %></li>
<%= @co_author_relations.find(co_author.co_author_relations_id).relation \ <li><%= co_author.email %></li>
unless co_author.co_author_relations_id.nil?%> <li><%= @co_author_relations.find(co_author.co_author_relations_id).relation \
unless co_author.co_author_relations_id.nil?%></li>
</ul>
</li> </li>
<% if ( i % 5 ) == 4 %> <% if ( i % 5 ) == 4 %>
</ul> </ul>