Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-12 17:45:23 +08:00
parent 1ec3f6ad64
commit 2957170d63
1 changed files with 4 additions and 4 deletions

View File

@ -53,15 +53,15 @@ class PersonalJournalsController < ApplicationController
"col" => col
}
end
choice_value = fields_to_show
choice_show = headers
{
"journal_papers" => journal_paper_list,
"headers" => headers,
"extras" => {"widget-title" => t("module_name.journal_paper")},
"total_pages" => journal_papers.total_pages,
"all_choice" => fields_to_show,
"123" => journal_papers,
"default_choice" => "paper_title"
"choice" => {"choice_value" => choice_value.prepend "paper_title","choice_show" => choice_show.prepend {"head-title"=>OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——"}}
"url" => OrbitHelper.params[:locale]+OrbitHelper.params[:url],
}
end