bugs fixed for plugins. .. and also css fixed
This commit is contained in:
		
							parent
							
								
									7d288b4160
								
							
						
					
					
						commit
						e3d9966f76
					
				| 
						 | 
				
			
			@ -262,7 +262,7 @@ var orbitDesktop = function(dom){
 | 
			
		|||
              window.o[o.data_method][callback_method](responseText,statusText,xhr,$form);
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
          if(notification != "")
 | 
			
		||||
          if(typeof notification == "string")
 | 
			
		||||
              o.notify(notification,"success");
 | 
			
		||||
        },
 | 
			
		||||
        error:function(){
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalBook = function(target,url,cache){ // t
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalBook.bookDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@ class Panel::PersonalBook::Desktop::PersonalBooksController < ApplicationControl
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
    params[:writing_book][:create_user_id] = current_user.id
 | 
			
		||||
    @personal_book = WritingBook.new(params[:writing_book])
 | 
			
		||||
    @personal_book = WritingBook.find(params[:id])
 | 
			
		||||
    if @personal_book.update_attributes(params[:writing_book])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @personal_book, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_book_desktop_personal_books_path(@personal_book) do |f| %>
 | 
			
		||||
<%= form_for @personal_book, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_book_desktop_personal_book_path(@personal_book) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="books_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @writing_books.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializeConferencePapers = function(target,url,cache){
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializeConferencePapers.paperDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalDiploma = function(target,url,cache){ /
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalDiploma.diplomaDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
/* Books */
 | 
			
		||||
[page-name="books_list"] .list_t_item .inner {
 | 
			
		||||
[page-name="diploma_list"] .list_t_item .inner {
 | 
			
		||||
  padding-left: 30px; }
 | 
			
		||||
[page-name="books_list"] .list_item_action {
 | 
			
		||||
[page-name="diploma_list"] .list_item_action {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  float: left;
 | 
			
		||||
  margin-left: -30px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action a {
 | 
			
		||||
  [page-name="diploma_list"] .list_item_action a {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    line-height: 20px;
 | 
			
		||||
    margin: 1px 1px 6px 1px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
  [page-name="diploma_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star {
 | 
			
		||||
  [page-name="diploma_list"] .list_item_action .icon-star {
 | 
			
		||||
    color: #faa732;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
  [page-name="diploma_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check {
 | 
			
		||||
  [page-name="diploma_list"] .list_item_action .icon-check {
 | 
			
		||||
    color: #333;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
[page-name="books_list"] .file_view .list_t_des {
 | 
			
		||||
[page-name="diploma_list"] .file_view .list_t_des {
 | 
			
		||||
  overflow: hidden; }
 | 
			
		||||
[page-name="books_list"] .file_view .file {
 | 
			
		||||
[page-name="diploma_list"] .file_view .file {
 | 
			
		||||
  float: left;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
| 
						 | 
				
			
			@ -42,15 +42,15 @@
 | 
			
		|||
  /* ie */
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  /* css3 */ }
 | 
			
		||||
  [page-name="books_list"] .file_view .file:hover {
 | 
			
		||||
  [page-name="diploma_list"] .file_view .file:hover {
 | 
			
		||||
    background-color: #f7f7f7; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file img {
 | 
			
		||||
  [page-name="diploma_list"] .file_view .file img {
 | 
			
		||||
    width: 38px;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    top: 6px; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file .filetitle {
 | 
			
		||||
  [page-name="diploma_list"] .file_view .file .filetitle {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@import "desktop-helper";
 | 
			
		||||
 | 
			
		||||
/* Books */
 | 
			
		||||
[page-name="books_list"] {
 | 
			
		||||
[page-name="diploma_list"] {
 | 
			
		||||
	.list_t_item .inner { padding-left: 30px; }
 | 
			
		||||
	.list_item_action {
 | 
			
		||||
		font-size: 12px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,7 @@ class Panel::PersonalDiploma::Desktop::PersonalDiplomasController < ApplicationC
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
    params[:diploma][:create_user_id] = current_user.id
 | 
			
		||||
    @diploma = Diploma.new(params[:diploma])
 | 
			
		||||
    @diploma = Diploma.find(params[:id])
 | 
			
		||||
    if @diploma.update_attributes(params[:diploma])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @diploma, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_diploma_desktop_personal_diplomas_path(@diploma) do |f| %>
 | 
			
		||||
<%= form_for @diploma, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_diploma_desktop_personal_diploma_path(@diploma) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,7 +75,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="diploma_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @diplomas.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalExperience = function(target,url,cache)
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalExperience.experienceDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
/* Books */
 | 
			
		||||
[page-name="books_list"] .list_t_item .inner {
 | 
			
		||||
[page-name="experience_list"] .list_t_item .inner {
 | 
			
		||||
  padding-left: 30px; }
 | 
			
		||||
[page-name="books_list"] .list_item_action {
 | 
			
		||||
[page-name="experience_list"] .list_item_action {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  float: left;
 | 
			
		||||
  margin-left: -30px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action a {
 | 
			
		||||
  [page-name="experience_list"] .list_item_action a {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    line-height: 20px;
 | 
			
		||||
    margin: 1px 1px 6px 1px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
  [page-name="experience_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star {
 | 
			
		||||
  [page-name="experience_list"] .list_item_action .icon-star {
 | 
			
		||||
    color: #faa732;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
  [page-name="experience_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check {
 | 
			
		||||
  [page-name="experience_list"] .list_item_action .icon-check {
 | 
			
		||||
    color: #333;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
[page-name="books_list"] .file_view .list_t_des {
 | 
			
		||||
[page-name="experience_list"] .file_view .list_t_des {
 | 
			
		||||
  overflow: hidden; }
 | 
			
		||||
[page-name="books_list"] .file_view .file {
 | 
			
		||||
[page-name="experience_list"] .file_view .file {
 | 
			
		||||
  float: left;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
| 
						 | 
				
			
			@ -42,15 +42,15 @@
 | 
			
		|||
  /* ie */
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  /* css3 */ }
 | 
			
		||||
  [page-name="books_list"] .file_view .file:hover {
 | 
			
		||||
  [page-name="experience_list"] .file_view .file:hover {
 | 
			
		||||
    background-color: #f7f7f7; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file img {
 | 
			
		||||
  [page-name="experience_list"] .file_view .file img {
 | 
			
		||||
    width: 38px;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    top: 6px; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file .filetitle {
 | 
			
		||||
  [page-name="experience_list"] .file_view .file .filetitle {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@import "desktop-helper";
 | 
			
		||||
 | 
			
		||||
/* Books */
 | 
			
		||||
[page-name="books_list"] {
 | 
			
		||||
[page-name="experience_list"] {
 | 
			
		||||
	.list_t_item .inner { padding-left: 30px; }
 | 
			
		||||
	.list_item_action {
 | 
			
		||||
		font-size: 12px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,7 +51,7 @@ class Panel::PersonalExperience::Desktop::PersonalExperiencesController < Applic
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
     params[:experience][:create_user_id] = current_user.id
 | 
			
		||||
    @experience = Experience.new(params[:experience])
 | 
			
		||||
    @experience = Experience.find(params[:id])
 | 
			
		||||
    if @experience.update_attributes(params[:writing_book])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @experience, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_experience_desktop_personal_experiences_path(@personal_book) do |f| %>
 | 
			
		||||
<%= form_for @experience, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_experience_desktop_personal_experience_path(@experience) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="experience_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @experiences.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalHonor = function(target,url,cache){ //
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalHonor.honorDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
/* Books */
 | 
			
		||||
[page-name="books_list"] .list_t_item .inner {
 | 
			
		||||
[page-name="honor_list"] .list_t_item .inner {
 | 
			
		||||
  padding-left: 30px; }
 | 
			
		||||
[page-name="books_list"] .list_item_action {
 | 
			
		||||
[page-name="honor_list"] .list_item_action {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  float: left;
 | 
			
		||||
  margin-left: -30px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action a {
 | 
			
		||||
  [page-name="honor_list"] .list_item_action a {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    line-height: 20px;
 | 
			
		||||
    margin: 1px 1px 6px 1px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
  [page-name="honor_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star {
 | 
			
		||||
  [page-name="honor_list"] .list_item_action .icon-star {
 | 
			
		||||
    color: #faa732;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
  [page-name="honor_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check {
 | 
			
		||||
  [page-name="honor_list"] .list_item_action .icon-check {
 | 
			
		||||
    color: #333;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
[page-name="books_list"] .file_view .list_t_des {
 | 
			
		||||
[page-name="honor_list"] .file_view .list_t_des {
 | 
			
		||||
  overflow: hidden; }
 | 
			
		||||
[page-name="books_list"] .file_view .file {
 | 
			
		||||
[page-name="honor_list"] .file_view .file {
 | 
			
		||||
  float: left;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
| 
						 | 
				
			
			@ -42,15 +42,15 @@
 | 
			
		|||
  /* ie */
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  /* css3 */ }
 | 
			
		||||
  [page-name="books_list"] .file_view .file:hover {
 | 
			
		||||
  [page-name="honor_list"] .file_view .file:hover {
 | 
			
		||||
    background-color: #f7f7f7; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file img {
 | 
			
		||||
  [page-name="honor_list"] .file_view .file img {
 | 
			
		||||
    width: 38px;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    top: 6px; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file .filetitle {
 | 
			
		||||
  [page-name="honor_list"] .file_view .file .filetitle {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@import "desktop-helper";
 | 
			
		||||
 | 
			
		||||
/* Books */
 | 
			
		||||
[page-name="books_list"] {
 | 
			
		||||
[page-name="honor_list"] {
 | 
			
		||||
	.list_t_item .inner { padding-left: 30px; }
 | 
			
		||||
	.list_item_action {
 | 
			
		||||
		font-size: 12px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@ class Panel::PersonalHonor::Desktop::PersonalHonorsController < ApplicationContr
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
    params[:honor][:create_user_id] = current_user.id
 | 
			
		||||
    @honor = Honor.new(params[:honor])
 | 
			
		||||
    @honor = Honor.find(params[:id])
 | 
			
		||||
    if @honor.update_attributes(params[:honor])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @honor, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_honor_desktop_personal_honors_path(@personal_book) do |f| %>
 | 
			
		||||
<%= form_for @honor, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_honor_desktop_personal_honor_path(@honor) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -74,7 +74,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="honor_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @honors.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializeJournalPapers.paperDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalLab = function(target,url,cache){ // th
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalLab.labDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
/* Books */
 | 
			
		||||
[page-name="books_list"] .list_t_item .inner {
 | 
			
		||||
[page-name="lab_list"] .list_t_item .inner {
 | 
			
		||||
  padding-left: 30px; }
 | 
			
		||||
[page-name="books_list"] .list_item_action {
 | 
			
		||||
[page-name="lab_list"] .list_item_action {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  float: left;
 | 
			
		||||
  margin-left: -30px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action a {
 | 
			
		||||
  [page-name="lab_list"] .list_item_action a {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    line-height: 20px;
 | 
			
		||||
    margin: 1px 1px 6px 1px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
  [page-name="lab_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star {
 | 
			
		||||
  [page-name="lab_list"] .list_item_action .icon-star {
 | 
			
		||||
    color: #faa732;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
  [page-name="lab_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check {
 | 
			
		||||
  [page-name="lab_list"] .list_item_action .icon-check {
 | 
			
		||||
    color: #333;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
[page-name="books_list"] .file_view .list_t_des {
 | 
			
		||||
[page-name="lab_list"] .file_view .list_t_des {
 | 
			
		||||
  overflow: hidden; }
 | 
			
		||||
[page-name="books_list"] .file_view .file {
 | 
			
		||||
[page-name="lab_list"] .file_view .file {
 | 
			
		||||
  float: left;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
| 
						 | 
				
			
			@ -42,15 +42,15 @@
 | 
			
		|||
  /* ie */
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  /* css3 */ }
 | 
			
		||||
  [page-name="books_list"] .file_view .file:hover {
 | 
			
		||||
  [page-name="lab_list"] .file_view .file:hover {
 | 
			
		||||
    background-color: #f7f7f7; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file img {
 | 
			
		||||
  [page-name="lab_list"] .file_view .file img {
 | 
			
		||||
    width: 38px;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    top: 6px; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file .filetitle {
 | 
			
		||||
  [page-name="lab_list"] .file_view .file .filetitle {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@import "desktop-helper";
 | 
			
		||||
 | 
			
		||||
/* Books */
 | 
			
		||||
[page-name="books_list"] {
 | 
			
		||||
[page-name="lab_list"] {
 | 
			
		||||
	.list_t_item .inner { padding-left: 30px; }
 | 
			
		||||
	.list_item_action {
 | 
			
		||||
		font-size: 12px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@ class Panel::PersonalLab::Desktop::PersonalLabsController < ApplicationControlle
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
    params[:lab][:create_user_id] = current_user.id
 | 
			
		||||
    @lab = Lab.new(params[:lab])
 | 
			
		||||
    @lab = Lab.find(params[:id])
 | 
			
		||||
    if @lab.update_attributes(params[:lab])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @lab, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_lab_desktop_personal_labs_path(@lab) do |f| %>
 | 
			
		||||
<%= form_for @lab, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_lab_desktop_personal_lab_path(@lab) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="lab_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @labs.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalPatent = function(target,url,cache){ //
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalPatent.patentDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
/* Books */
 | 
			
		||||
[page-name="books_list"] .list_t_item .inner {
 | 
			
		||||
[page-name="patent_list"] .list_t_item .inner {
 | 
			
		||||
  padding-left: 30px; }
 | 
			
		||||
[page-name="books_list"] .list_item_action {
 | 
			
		||||
[page-name="patent_list"] .list_item_action {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  float: left;
 | 
			
		||||
  margin-left: -30px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action a {
 | 
			
		||||
  [page-name="patent_list"] .list_item_action a {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    line-height: 20px;
 | 
			
		||||
    margin: 1px 1px 6px 1px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
  [page-name="patent_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star {
 | 
			
		||||
  [page-name="patent_list"] .list_item_action .icon-star {
 | 
			
		||||
    color: #faa732;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
  [page-name="patent_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check {
 | 
			
		||||
  [page-name="patent_list"] .list_item_action .icon-check {
 | 
			
		||||
    color: #333;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
[page-name="books_list"] .file_view .list_t_des {
 | 
			
		||||
[page-name="patent_list"] .file_view .list_t_des {
 | 
			
		||||
  overflow: hidden; }
 | 
			
		||||
[page-name="books_list"] .file_view .file {
 | 
			
		||||
[page-name="patent_list"] .file_view .file {
 | 
			
		||||
  float: left;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
| 
						 | 
				
			
			@ -42,15 +42,15 @@
 | 
			
		|||
  /* ie */
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  /* css3 */ }
 | 
			
		||||
  [page-name="books_list"] .file_view .file:hover {
 | 
			
		||||
  [page-name="patent_list"] .file_view .file:hover {
 | 
			
		||||
    background-color: #f7f7f7; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file img {
 | 
			
		||||
  [page-name="patent_list"] .file_view .file img {
 | 
			
		||||
    width: 38px;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    top: 6px; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file .filetitle {
 | 
			
		||||
  [page-name="patent_list"] .file_view .file .filetitle {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@import "desktop-helper";
 | 
			
		||||
 | 
			
		||||
/* Books */
 | 
			
		||||
[page-name="books_list"] {
 | 
			
		||||
[page-name="patent_list"] {
 | 
			
		||||
	.list_t_item .inner { padding-left: 30px; }
 | 
			
		||||
	.list_item_action {
 | 
			
		||||
		font-size: 12px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@ class Panel::PersonalPatent::Desktop::PersonalPatentsController < ApplicationCon
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
    params[:writing_patent][:create_user_id] = current_user.id
 | 
			
		||||
    @patent = WritingPatent.new(params[:writing_patent])
 | 
			
		||||
    @patent = WritingPatent.find(params[:id])
 | 
			
		||||
    if @patent.update_attributes(params[:writing_patent])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @patent, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_patent_desktop_personal_patents_path(@patent) do |f| %>
 | 
			
		||||
<%= form_for @patent, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_patent_desktop_personal_patent_path(@patent) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,7 +75,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="patent_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @patents.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalProject = function(target,url,cache){ /
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalProject.projectDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
/* Books */
 | 
			
		||||
[page-name="books_list"] .list_t_item .inner {
 | 
			
		||||
[page-name="project_list"] .list_t_item .inner {
 | 
			
		||||
  padding-left: 30px; }
 | 
			
		||||
[page-name="books_list"] .list_item_action {
 | 
			
		||||
[page-name="project_list"] .list_item_action {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  float: left;
 | 
			
		||||
  margin-left: -30px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action a {
 | 
			
		||||
  [page-name="project_list"] .list_item_action a {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    line-height: 20px;
 | 
			
		||||
    margin: 1px 1px 6px 1px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
  [page-name="project_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star {
 | 
			
		||||
  [page-name="project_list"] .list_item_action .icon-star {
 | 
			
		||||
    color: #faa732;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
  [page-name="project_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check {
 | 
			
		||||
  [page-name="project_list"] .list_item_action .icon-check {
 | 
			
		||||
    color: #333;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
[page-name="books_list"] .file_view .list_t_des {
 | 
			
		||||
[page-name="project_list"] .file_view .list_t_des {
 | 
			
		||||
  overflow: hidden; }
 | 
			
		||||
[page-name="books_list"] .file_view .file {
 | 
			
		||||
[page-name="project_list"] .file_view .file {
 | 
			
		||||
  float: left;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
| 
						 | 
				
			
			@ -42,15 +42,15 @@
 | 
			
		|||
  /* ie */
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  /* css3 */ }
 | 
			
		||||
  [page-name="books_list"] .file_view .file:hover {
 | 
			
		||||
  [page-name="project_list"] .file_view .file:hover {
 | 
			
		||||
    background-color: #f7f7f7; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file img {
 | 
			
		||||
  [page-name="project_list"] .file_view .file img {
 | 
			
		||||
    width: 38px;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    top: 6px; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file .filetitle {
 | 
			
		||||
  [page-name="project_list"] .file_view .file .filetitle {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@import "desktop-helper";
 | 
			
		||||
 | 
			
		||||
/* Books */
 | 
			
		||||
[page-name="books_list"] {
 | 
			
		||||
[page-name="project_list"] {
 | 
			
		||||
	.list_t_item .inner { padding-left: 30px; }
 | 
			
		||||
	.list_item_action {
 | 
			
		||||
		font-size: 12px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@ class Panel::PersonalProject::Desktop::PersonalProjectsController < ApplicationC
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
    params[:project][:create_user_id] = current_user.id
 | 
			
		||||
    @project = Project.new(params[:project])
 | 
			
		||||
    @project = Project.find(params[:id])
 | 
			
		||||
    if @project.update_attributes(params[:project])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @project, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_project_desktop_personal_projects_path(@project) do |f| %>
 | 
			
		||||
<%= form_for @project, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_project_desktop_personal_project_path(@project) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="project_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @projects.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ orbitDesktop.prototype.initializePersonalResearch = function(target,url,cache){
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.initializePersonalResearch.researchDelete = function(data,dom){
 | 
			
		||||
    var parent = dom.parent().parent();
 | 
			
		||||
    var parent = dom.parent().parent().parent();
 | 
			
		||||
    if(data.success){
 | 
			
		||||
      parent.hide("slide",function(){parent.remove();});
 | 
			
		||||
      o.notify(data.msg,"success");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
/* Books */
 | 
			
		||||
[page-name="books_list"] .list_t_item .inner {
 | 
			
		||||
[page-name="research_list"] .list_t_item .inner {
 | 
			
		||||
  padding-left: 30px; }
 | 
			
		||||
[page-name="books_list"] .list_item_action {
 | 
			
		||||
[page-name="research_list"] .list_item_action {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  float: left;
 | 
			
		||||
  margin-left: -30px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action a {
 | 
			
		||||
  [page-name="research_list"] .list_item_action a {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    line-height: 20px;
 | 
			
		||||
    margin: 1px 1px 6px 1px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
  [page-name="research_list"] .list_item_action .icon-star-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-star {
 | 
			
		||||
  [page-name="research_list"] .list_item_action .icon-star {
 | 
			
		||||
    color: #faa732;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
  [page-name="research_list"] .list_item_action .icon-check-empty {
 | 
			
		||||
    color: #999;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
  [page-name="books_list"] .list_item_action .icon-check {
 | 
			
		||||
  [page-name="research_list"] .list_item_action .icon-check {
 | 
			
		||||
    color: #333;
 | 
			
		||||
    font-size: 20px; }
 | 
			
		||||
[page-name="books_list"] .file_view .list_t_des {
 | 
			
		||||
[page-name="research_list"] .file_view .list_t_des {
 | 
			
		||||
  overflow: hidden; }
 | 
			
		||||
[page-name="books_list"] .file_view .file {
 | 
			
		||||
[page-name="research_list"] .file_view .file {
 | 
			
		||||
  float: left;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
| 
						 | 
				
			
			@ -42,15 +42,15 @@
 | 
			
		|||
  /* ie */
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  /* css3 */ }
 | 
			
		||||
  [page-name="books_list"] .file_view .file:hover {
 | 
			
		||||
  [page-name="research_list"] .file_view .file:hover {
 | 
			
		||||
    background-color: #f7f7f7; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file img {
 | 
			
		||||
  [page-name="research_list"] .file_view .file img {
 | 
			
		||||
    width: 38px;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    top: 6px; }
 | 
			
		||||
  [page-name="books_list"] .file_view .file .filetitle {
 | 
			
		||||
  [page-name="research_list"] .file_view .file .filetitle {
 | 
			
		||||
    display: block;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 38px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@import "desktop-helper";
 | 
			
		||||
 | 
			
		||||
/* Books */
 | 
			
		||||
[page-name="books_list"] {
 | 
			
		||||
[page-name="research_list"] {
 | 
			
		||||
	.list_t_item .inner { padding-left: 30px; }
 | 
			
		||||
	.list_item_action {
 | 
			
		||||
		font-size: 12px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@ class Panel::PersonalResearch::Desktop::PersonalResearchsController < Applicatio
 | 
			
		|||
 | 
			
		||||
  def update
 | 
			
		||||
    params[:research][:create_user_id] = current_user.id
 | 
			
		||||
    @research = Research.new(params[:research])
 | 
			
		||||
    @research = Research.find(params[:id])
 | 
			
		||||
    if @research.update_attributes(params[:research])
 | 
			
		||||
      render json: {success: true, msg: t('create_success')}.to_json
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<%= form_for @research, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_research_desktop_personal_researchs_path(@personal_book) do |f| %>
 | 
			
		||||
<%= form_for @research, html: { multipart: true, "form-type"=>"ajax_form", "callback-method"=>"formCallback"}, url: panel_personal_research_desktop_personal_research_path(@research) do |f| %>
 | 
			
		||||
  <%= render partial: 'form', locals: {:f => f} %>
 | 
			
		||||
<%end%>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,8 +41,8 @@
 | 
			
		|||
    <div class="sdm_t hh1">View</div>
 | 
			
		||||
    <div class="admbg sdm_o">
 | 
			
		||||
      <ul id="journal_view_selection">
 | 
			
		||||
        <li><%= link_to "Journal", panel_personal_research_desktop_personal_researchs_path + "?view=research_title", :class => "hp hh1 admtxt", "ajax-remote" =>  "get" %></li>
 | 
			
		||||
        <li><%= link_to "Title", panel_personal_research_desktop_personal_researchs_path + "?view=extracted_chapters", :class => "hp hh1 admtxt", "ajax-remote" =>  "get" %></li>
 | 
			
		||||
        <li><%= link_to "Title", panel_personal_research_desktop_personal_researchs_path + "?view=research_title", :class => "hp hh1 admtxt", "ajax-remote" =>  "get" %></li>
 | 
			
		||||
        <li><%= link_to "Extracted Chapters", panel_personal_research_desktop_personal_researchs_path + "?view=extracted_chapters", :class => "hp hh1 admtxt", "ajax-remote" =>  "get" %></li>
 | 
			
		||||
        <li><%= link_to "File", panel_personal_research_desktop_personal_researchs_path + "?view=file", :class => "hp hh1 admtxt", "ajax-remote" =>  "get" %></li>
 | 
			
		||||
        <li><%= link_to "Keywords", panel_personal_research_desktop_personal_researchs_path + "?view=keywords", :class => "hp hh1 admtxt", "ajax-remote" =>  "get" %></li>
 | 
			
		||||
      </ul>
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
    <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
    <div class="overview" page-name="research_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
 | 
			
		||||
      <% @researches.each do |w| %>
 | 
			
		||||
        <%= publication_record w, @view_by%>
 | 
			
		||||
      <% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in New Issue