Bug Tracker

Modify

Ticket #5988 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

v1.4.1 removeClass is No Work!

Reported by: masanof Owned by: john
Priority: major Milestone: 1.4.2
Component: attributes Version: 1.4.1
Keywords: Cc:
Blocking: Blocked by:

Description

v1.4.1 removeClass is No Work.

this is the v1.3.2 work sorce.

$("ul.tabs li").hover(function(){

tabs_change(this); return false;

});

var tabs_change = function(target) {

if($(target).attr("class")!='active'){ This class into the var is ' active' space char no thanks :)

$("ul.tabss li").removeClass('active'); Remove any "active" class. But this cord after class into ' ' space char no thanks :) $(".tabfunis_content").hide(); Hide all tab content var activeTab = $(target).find("a").attr("href") + "funis"; Find the href

$('.active').fadeIn();

} return false;

} I Checked Browser is IE6 FireFox3.6 Google Chrome4.0 all NG. Plz fix.

Change History

comment:1 Changed 3 years ago by masanof

this is the v1.3.2 work sorce.

$("ul.tabs li").hover(function(){

tabs_change(this); return false;

});

var tabs_change = function(target) {

if($(target).attr("class")!='active'){ This class into the var is ' active' space char no thanks :)

$("ul.tabss li").removeClass('active'); Remove any "active" class. But this cord after class into the space char ' ' no thanks :) $(".tab_content").hide(); Hide all tab content var activeTab = $(target).find("a").attr("href"); Find the href

$('.active').fadeIn();

} return false;

}

I Checked Browser is IE6 FireFox?3.6 Google Chrome4.0 all NG. Plz fix.

comment:2 Changed 3 years ago by john

  • Owner set to john
  • Status changed from new to assigned

comment:3 Changed 3 years ago by john

  • Component changed from unfilled to core

comment:4 Changed 3 years ago by Skalman

There seems to be something wrong in the code: $("ul.tabs li").hover... $("ul.tabss li").removeClass...

Is the extra s supposed to be there?

comment:5 Changed 3 years ago by masanof

It is the street, and "S" is unnecessary. It is my typing error. However, RemoveClass doesn't operate accurately though the typing error is corrected. The space character doesn't disappear. Plz try removeClass.

comment:6 Changed 3 years ago by john

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:7 Changed 3 years ago by john

  • Component changed from core to attributes

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.