add co-author page and new it, but can't destory it...
This commit is contained in:
parent
95a3831dce
commit
ccfecb8243
|
@ -988,6 +988,18 @@ var orbitDesktop = function(dom){
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.initializeJournalPapers.coauthor = function(){ // to open add pages in journal papers page
|
||||||
|
var bindHandlers = function(){ // to bind handlers for add page
|
||||||
|
o.simple_drop_down();
|
||||||
|
|
||||||
|
o.tinyscrollbar_ext({
|
||||||
|
main: '.tinycanvas',
|
||||||
|
fill: '.s_grid_con'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
bindHandlers();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
this.initializeAppstore = function(target,url,cache){
|
this.initializeAppstore = function(target,url,cache){
|
||||||
|
|
|
@ -35,11 +35,6 @@ class Desktop::JournalPagesController < ApplicationController
|
||||||
|
|
||||||
def create
|
def create
|
||||||
if params[:commit].eql?"Save"
|
if params[:commit].eql?"Save"
|
||||||
#if not params[:writing_journal][:publication_date].nil?
|
|
||||||
# params[:writing_journal][:publication_date] = \
|
|
||||||
# Date.new *(params[:writing_journal][:publication_date].split("/").map{|s| s.to_i})
|
|
||||||
#end
|
|
||||||
|
|
||||||
params[:writing_journal][:create_user_id] = current_user.id
|
params[:writing_journal][:create_user_id] = current_user.id
|
||||||
|
|
||||||
@writing_journal = WritingJournal.new(params[:writing_journal])
|
@writing_journal = WritingJournal.new(params[:writing_journal])
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<li><a href="<%= desktop_journal_pages_path %>" data-method="list" class="hh2 w2 hp active thmc1 thmtxt xx" onclick='return false;'>List</a></li>
|
<li><a href="<%= desktop_journal_pages_path %>" data-method="list" class="hh2 w2 hp active thmc1 thmtxt xx" onclick='return false;'>List</a></li>
|
||||||
<li><a href="<%= new_desktop_journal_page_path %>" data-method="addpaper" class="admtxt hh2 w2 hp xx" onclick='return false;'>Add/Edit</a></li>
|
<li><a href="<%= new_desktop_journal_page_path %>" data-method="addpaper" class="admtxt hh2 w2 hp xx" onclick='return false;'>Add/Edit</a></li>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Journals</a></li>
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Journals</a></li>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Co-Authors</a></li>
|
<li><a href="<%= new_desktop_co_author_path %>" data-method="coauthor" class="admtxt hh2 w2 hp" onclick='return false;'>Co-Authors</a></li>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Tags & Keywords</a></li>
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Tags & Keywords</a></li>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Analysis</a></li>
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Analysis</a></li>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Import</a></li>
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Import</a></li>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
<div class="toolbar hh2">
|
<div class="toolbar hh2">
|
||||||
<div class="fn_g hp">
|
<div class="fn_g hp">
|
||||||
<%= button_tag "Save", name: "commit", value: "Save", class: "fn_btn hh2 thmc2 thmtxt" %>
|
<%= button_tag "Save", name: "commit", value: "Save", class: "fn_btn hh2 thmc2 thmtxt" %>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<%= form_for @writing_journal, html: { multipart: true ,:type=>"ajax_form"} , url: desktop_journal_pages_path do |f| %>
|
<%= form_for @writing_journal , url: desktop_journal_pages_path do |f| %>
|
||||||
<%= render partial: 'desktop/journal_pages/form', locals: {:f => f} %>
|
<%= render partial: 'desktop/journal_pages/form', locals: {:f => f} %>
|
||||||
<%end%>
|
<%end%>
|
||||||
|
|
|
@ -149,9 +149,8 @@ Orbit::Application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :desktop do
|
namespace :desktop do
|
||||||
|
|
||||||
match '/journal_pages/get_journals_json' => 'journal_pages#get_journals_json' , via: :get
|
|
||||||
match "/" => "desktop#index"
|
match "/" => "desktop#index"
|
||||||
|
match '/journal_pages/get_journals_json' => 'journal_pages#get_journals_json'
|
||||||
match '/desktop'=>'desktop#desktop'
|
match '/desktop'=>'desktop#desktop'
|
||||||
match '/app_manager'=>'desktop#app_manager'
|
match '/app_manager'=>'desktop#app_manager'
|
||||||
match '/sections'=>'desktop#sections'
|
match '/sections'=>'desktop#sections'
|
||||||
|
@ -169,6 +168,7 @@ Orbit::Application.routes.draw do
|
||||||
match '/temp_func/'=>'desktop#temp_func'
|
match '/temp_func/'=>'desktop#temp_func'
|
||||||
|
|
||||||
resources :journal_pages
|
resources :journal_pages
|
||||||
|
resources :co_authors
|
||||||
end
|
end
|
||||||
|
|
||||||
# namespace :desktop_publications do
|
# namespace :desktop_publications do
|
||||||
|
|
Loading…
Reference in New Issue