Bug Tracker

Modify

Ticket #785 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

addClass doesn't seem to work when in an ajax callback that returns nothing

Reported by: rich.manalang@… Owned by:
Priority: major Milestone: 1.1
Component: core Version: 1.1
Keywords: css addclass Cc:
Blocking: Blocked by:

Description (last modified by joern) (diff)

Consider the following code...

$.get(serviceURI,{'parm':'1'},function(data){
  $(node).append(data).addClass("someclass");
})

The addClass method doesn't seem to work in 1.1b when the ajax response is blank. It works fine if the response returns a value. Also, it worked fine in 1.0.4 when the response was blank as well.

Change History

comment:1 Changed 6 years ago by joern

  • Description modified (diff)

I can't confirm this. Can you provide a test page? Are you sure the callback is called at all? If the response is empty, the append call doesn't do anything, too.

comment:2 Changed 6 years ago by rich.manalan

comment:3 Changed 6 years ago by john

  • Status changed from new to closed
  • Version changed from 1.1a to 1.1
  • Resolution set to fixed

This has been fixed in SVN. Doing .append("") caused an error to occur.

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.