From b32ef2ad4dc8725659366192984f41e8e28561e7 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Tue, 28 Dec 2021 07:52:03 +0000 Subject: [PATCH] update template --- modules/announcement/_annc_widget15.html.erb | 4 +-- modules/text_marquee/_widget.html.erb | 33 ++++++++------------ 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/modules/announcement/_annc_widget15.html.erb b/modules/announcement/_annc_widget15.html.erb index f6ab3de..01c1a98 100644 --- a/modules/announcement/_annc_widget15.html.erb +++ b/modules/announcement/_annc_widget15.html.erb @@ -128,7 +128,7 @@ num=1; } var flag=false; - $('.btn-left').click(function(){ + $('[data-subpart-id=\"{{subpart-id}}\"] .btn-left').click(function(){ if(!flag){ var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray(); var ul_length = uls.length; @@ -147,7 +147,7 @@ $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){$("body").css("overflow-x","");flag=false;}); }; }); - $('.btn-right').click(function(){ + $('[data-subpart-id=\"{{subpart-id}}\"] .btn-right').click(function(){ var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length; if(!flag){ var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray(); diff --git a/modules/text_marquee/_widget.html.erb b/modules/text_marquee/_widget.html.erb index 5ab3964..f4ca0fd 100644 --- a/modules/text_marquee/_widget.html.erb +++ b/modules/text_marquee/_widget.html.erb @@ -3,36 +3,29 @@
  • {{content}}
  • - + - - - - -