From 4fb6f239bd803e566d0b442d7a5e53816dc080a1 Mon Sep 17 00:00:00 2001 From: ken Date: Mon, 20 Jul 2026 11:30:40 +0800 Subject: [PATCH] table js --- assets/javascripts/app.js | 26 +++++++++---------- modules/announcement/annc_index17.html.erb | 2 +- .../custom_announcement/annc_index1.html.erb | 2 +- .../custom_announcement/annc_index10.html.erb | 2 +- .../custom_announcement/annc_index11.html.erb | 2 +- .../custom_announcement/annc_index12.html.erb | 2 +- .../custom_announcement/annc_index13.html.erb | 2 +- .../custom_announcement/annc_index14.html.erb | 2 +- .../custom_announcement/annc_index15.html.erb | 2 +- .../custom_announcement/annc_index16.html.erb | 2 +- .../custom_announcement/annc_index17.html.erb | 2 +- .../custom_announcement/annc_index2.html.erb | 2 +- .../custom_announcement/annc_index3.html.erb | 2 +- .../custom_announcement/annc_index4.html.erb | 2 +- .../custom_announcement/annc_index5.html.erb | 2 +- .../custom_announcement/annc_index6.html.erb | 2 +- .../custom_announcement/annc_index8.html.erb | 2 +- .../custom_announcement/annc_index9.html.erb | 2 +- .../event_news_index13.html.erb | 2 +- 19 files changed, 31 insertions(+), 31 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index df625bc..c0c619e 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -781,19 +781,19 @@ } }); //表格scope - $("table").each(function() { - $(this).find("tr").each(function(rowIndex) { - $(this).find("th").each(function(colIndex) { - if (rowIndex === 0) { - // 第一列的 th,適用於該欄 - $(this).attr("scope", "col"); - } else if (colIndex === 0) { - // 其他列的第一個 th,適用於該行 - $(this).attr("scope", "row"); - } - }); - }); - }); + // $("table").each(function() { + // $(this).find("tr").each(function(rowIndex) { + // $(this).find("th").each(function(colIndex) { + // if (rowIndex === 0) { + // // 第一列的 th,適用於該欄 + // $(this).attr("scope", "col"); + // } else if (colIndex === 0) { + // // 其他列的第一個 th,適用於該行 + // $(this).attr("scope", "row"); + // } + // }); + // }); + // }); $(".banner-pager button").addClass('banner-pagerbtn'); $(".banner-pager button").attr("type","button"); $(".banner-pager button").append('下一張'); diff --git a/modules/announcement/annc_index17.html.erb b/modules/announcement/annc_index17.html.erb index dcf66e3..fde6db4 100644 --- a/modules/announcement/annc_index17.html.erb +++ b/modules/announcement/annc_index17.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index1.html.erb b/modules/custom_announcement/annc_index1.html.erb index 9623c45..105d986 100644 --- a/modules/custom_announcement/annc_index1.html.erb +++ b/modules/custom_announcement/annc_index1.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index10.html.erb b/modules/custom_announcement/annc_index10.html.erb index c589b43..51842aa 100644 --- a/modules/custom_announcement/annc_index10.html.erb +++ b/modules/custom_announcement/annc_index10.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index14.html.erb b/modules/custom_announcement/annc_index14.html.erb index f80ca3b..1ca91ac 100644 --- a/modules/custom_announcement/annc_index14.html.erb +++ b/modules/custom_announcement/annc_index14.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index15.html.erb b/modules/custom_announcement/annc_index15.html.erb index 3eb9a05..0318ffd 100644 --- a/modules/custom_announcement/annc_index15.html.erb +++ b/modules/custom_announcement/annc_index15.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index16.html.erb b/modules/custom_announcement/annc_index16.html.erb index d282496..0e5dd3a 100644 --- a/modules/custom_announcement/annc_index16.html.erb +++ b/modules/custom_announcement/annc_index16.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index17.html.erb b/modules/custom_announcement/annc_index17.html.erb index 0e35310..ccf9c36 100644 --- a/modules/custom_announcement/annc_index17.html.erb +++ b/modules/custom_announcement/annc_index17.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index2.html.erb b/modules/custom_announcement/annc_index2.html.erb index 864061e..a215572 100644 --- a/modules/custom_announcement/annc_index2.html.erb +++ b/modules/custom_announcement/annc_index2.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index3.html.erb b/modules/custom_announcement/annc_index3.html.erb index b69e56f..0c3a074 100644 --- a/modules/custom_announcement/annc_index3.html.erb +++ b/modules/custom_announcement/annc_index3.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index4.html.erb b/modules/custom_announcement/annc_index4.html.erb index e95aa94..cce25ee 100644 --- a/modules/custom_announcement/annc_index4.html.erb +++ b/modules/custom_announcement/annc_index4.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

diff --git a/modules/custom_announcement/annc_index5.html.erb b/modules/custom_announcement/annc_index5.html.erb index d0614d0..2655d91 100644 --- a/modules/custom_announcement/annc_index5.html.erb +++ b/modules/custom_announcement/annc_index5.html.erb @@ -1,5 +1,5 @@
-

{{page-title}}

+

{{page-title}}

  • diff --git a/modules/custom_announcement/annc_index6.html.erb b/modules/custom_announcement/annc_index6.html.erb index 4e29e2a..351e0a5 100644 --- a/modules/custom_announcement/annc_index6.html.erb +++ b/modules/custom_announcement/annc_index6.html.erb @@ -1,5 +1,5 @@
    -

    {{page-title}}

    +

    {{page-title}}

    • diff --git a/modules/custom_announcement/annc_index8.html.erb b/modules/custom_announcement/annc_index8.html.erb index b4e0462..ef802a2 100644 --- a/modules/custom_announcement/annc_index8.html.erb +++ b/modules/custom_announcement/annc_index8.html.erb @@ -1,5 +1,5 @@
      -

      {{page-title}}

      +

      {{page-title}}

      • diff --git a/modules/custom_announcement/annc_index9.html.erb b/modules/custom_announcement/annc_index9.html.erb index dd09135..fb03634 100644 --- a/modules/custom_announcement/annc_index9.html.erb +++ b/modules/custom_announcement/annc_index9.html.erb @@ -1,5 +1,5 @@
        -

        {{page-title}}

        +

        {{page-title}}

        • diff --git a/modules/event_news_mod/event_news_index13.html.erb b/modules/event_news_mod/event_news_index13.html.erb index b678add..33e93b7 100644 --- a/modules/event_news_mod/event_news_index13.html.erb +++ b/modules/event_news_mod/event_news_index13.html.erb @@ -1,5 +1,5 @@
          -

          {{page-title}}

          +

          {{page-title}}