fix error
This commit is contained in:
parent
325100664d
commit
6cab85f96a
|
@ -247,7 +247,7 @@ class AnnouncementsController < ApplicationController
|
|||
)
|
||||
filter_attr = (use_tag ? 'data-tags' : 'data-category')
|
||||
extra_html = '
|
||||
<script>
|
||||
<script style=\"display:none\">
|
||||
if(typeof(wpexAnimsition) == "undefined"){
|
||||
var wpexAnimsition = {
|
||||
"loading":"1",
|
||||
|
@ -323,7 +323,7 @@ class AnnouncementsController < ApplicationController
|
|||
end
|
||||
end
|
||||
extra_html = "
|
||||
<script>
|
||||
<script style=\"display:none\">
|
||||
$(document).ready(function(){
|
||||
$(\"[data-subpart-id=\\\"#{subpart.id}\\\"] .w-annc__more\").text(\"#{read_more_text}\");
|
||||
})
|
||||
|
@ -332,7 +332,7 @@ class AnnouncementsController < ApplicationController
|
|||
end
|
||||
if (@read_more_option != 0 rescue false)
|
||||
extra_html += "
|
||||
<script>
|
||||
<script style=\"display:none\">
|
||||
|
||||
$(document).ready(function(){
|
||||
var read_more_position = #{@read_more_option};
|
||||
|
@ -367,7 +367,7 @@ class AnnouncementsController < ApplicationController
|
|||
extra_after_html = ""
|
||||
if @all_setting_option == 0 && @tab_option == 1
|
||||
extra_after_html = "
|
||||
<script>
|
||||
<script style=\"display:none\">
|
||||
$(\"[data-subpart-id=\\\"#{subpart.id}\\\"] [data-list] [data-category]\").css(\"display\",\"none\");
|
||||
$(\"[data-subpart-id=\\\"#{subpart.id}\\\"] [data-list] [data-category]:lt(#{max_all_count})\").css(\"display\",\"\");
|
||||
</script>
|
||||
|
@ -377,7 +377,7 @@ class AnnouncementsController < ApplicationController
|
|||
read_more_url = "/#{locale + page_url}" rescue ""
|
||||
read_more_url = read_more_url + "?" + {"category"=>all_cats,"tags"=>all_tags}.to_param if read_more_url != ""
|
||||
extra_after_html += "
|
||||
<script>
|
||||
<script style=\"display:none\">
|
||||
$(\"[data-subpart-id=\\\"#{subpart.id}\\\"] .w-annc__more\").attr(\"href\",\"#{read_more_url}\");
|
||||
</script>
|
||||
"
|
||||
|
@ -631,7 +631,7 @@ class AnnouncementsController < ApplicationController
|
|||
sub_anncs_text += "<tr><td><a href=\"#{page_url}/#{sub_annc.to_param}\" title=\"#{sub_annc.title}\" target=\"_blank\">#{sub_annc.title}</a></td>#{(display_sub_annc_date ? ('<td class="i-annc__postdate">'+sub_annc.display_postdate+'</td>') : '')}</tr>"
|
||||
end
|
||||
sub_anncs_text += "</tbody></table></div>"
|
||||
sub_anncs_text += '<script>
|
||||
sub_anncs_text += '<script style=\"display:none\">
|
||||
var DataTables_language = {};
|
||||
DataTables_language["zh_tw"] = {"info":"本頁為第 _START_ 項至第 _END_ 項,共有 _TOTAL_ 項","infoEmpty":"本頁為第 0 至第 0 項,共有 0 項","infoFiltered":"(來自總共 _MAX_ 項中的符合項目)","infoPostFix":"","lengthMenu":"每頁顯示 _MENU_ 個項目","processing":"處理中...","search":"快速搜尋:","zeroRecords":"沒有找到符合的項目","paginate": {"first":"第一頁","previous":"上一頁","next":"下一頁","last":"最後一頁"},"decimal":"","thousands":","};
|
||||
$(".sub_anncs_table").dataTable({"language":DataTables_language["'+I18n.locale.to_s+'"],"order":[],"orderClasses":false,"stripeClasses":["even","odd"],"pagingType":"simple"});
|
||||
|
|
Loading…
Reference in New Issue