Fix bug.
This commit is contained in:
parent
d2e5fb267b
commit
d2902bc797
|
@ -247,7 +247,7 @@ class AnnouncementsController < ApplicationController
|
||||||
)
|
)
|
||||||
filter_attr = (use_tag ? 'data-tags' : 'data-category')
|
filter_attr = (use_tag ? 'data-tags' : 'data-category')
|
||||||
extra_html = '
|
extra_html = '
|
||||||
<script style=\"display:none\">
|
<script style="display:none">
|
||||||
if(typeof(wpexAnimsition) == "undefined"){
|
if(typeof(wpexAnimsition) == "undefined"){
|
||||||
var wpexAnimsition = {
|
var wpexAnimsition = {
|
||||||
"loading":"1",
|
"loading":"1",
|
||||||
|
@ -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>"
|
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
|
end
|
||||||
sub_anncs_text += "</tbody></table></div>"
|
sub_anncs_text += "</tbody></table></div>"
|
||||||
sub_anncs_text += '<script style=\"display:none\">
|
sub_anncs_text += '<script style="display:none">
|
||||||
var DataTables_language = {};
|
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":","};
|
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"});
|
$(".sub_anncs_table").dataTable({"language":DataTables_language["'+I18n.locale.to_s+'"],"order":[],"orderClasses":false,"stripeClasses":["even","odd"],"pagingType":"simple"});
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
<div class="i-annc__content-wrap">
|
<div class="i-annc__content-wrap">
|
||||||
<div class="i-annc__meta">
|
<div class="i-annc__meta">
|
||||||
<span class="i-annc__postdate-wrap" date-format="%Y-%m-%d">
|
<span class="i-annc__postdate-wrap" date-format="%Y-%m-%d">
|
||||||
<!-- -->
|
|
||||||
<span class="i-annc__postdate">{{postdate}}</span>
|
<span class="i-annc__postdate">{{postdate}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="i-annc__category-wrap">
|
<span class="i-annc__category-wrap">
|
||||||
|
@ -29,4 +28,5 @@
|
||||||
<p class="i-annc__subtitle">{{subtitle}}</p>
|
<p class="i-annc__subtitle">{{subtitle}}</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
|
@ -22,5 +22,6 @@
|
||||||
<p class="i-annc__subtitle">{{subtitle}}</p>
|
<p class="i-annc__subtitle">{{subtitle}}</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{pagination_goes_here}}
|
{{pagination_goes_here}}
|
Loading…
Reference in New Issue