Modify ↓
Ticket #785 (closed bug: fixed)
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.