This commit is contained in:
BoHung Chiu 2022-10-21 09:46:30 +08:00
parent 8db03faa6b
commit cd418d31e9
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@
<button id="clickall"><%= (I18n.locale.to_s == "zh_tw") ? "全選" : "select all" %></button>
<button id="unclickall"><%= (I18n.locale.to_s == "zh_tw") ? "取消全選" : "unselect all" %></button>
<%
default_file_show = @file_to_show..fields['file_show'].options[:default]
default_file_show = @file_to_show.fields['file_show'].options[:default]
if @file_to_show.file_show.count != default_file_show.count
@file_to_show.file_show = default_file_show
@file_to_show.save