Closed shabda closed 11 years ago
To replicate:
return this (after) jsoning
`data = {"html": ""} from a view.
Html is:
<a href="/foo/" class="ajax" data-replace="#some-id">
The object doesn't get replaced.
Easy to work around by adding a space in returned html, but hard to debug if you hit this issue.
`data = {"html": ""}
@shabda: Are you sure you want to remove the DOM element or just set the inside of the element to blank?
@paltman : Yeah we could just use data-remove in this cases. Should have read the docs a little more.
To replicate:
return this (after) jsoning
`data = {"html": ""} from a view.
Html is:
<a href="/foo/" class="ajax" data-replace="#some-id">
The object doesn't get replaced.
Easy to work around by adding a space in returned html, but hard to debug if you hit this issue.
`data = {"html": ""}