drvic10k / bootstrap-sortable

adding sorting ability to bootstrap table
MIT License
513 stars 131 forks source link

HTML is removed from headers after sorting #35

Closed AmusableLemur closed 10 years ago

AmusableLemur commented 10 years ago

When adding sortable to a table with HTML in a table header the code is removed after sorting twice.

Example: <th> <i class="fa fa-map-marker fa-fw"></i> Location </th>

After clicking on the header twice, the icon is no longer visible.

drvic10k commented 10 years ago

can't reproduce on my demo, would you mind preparing a jsfiddle?

AmusableLemur commented 10 years ago

It appears to be a problem on Firefox, I can't reproduce it in Chrome.

http://jsfiddle.net/avz5n/1/

drvic10k commented 10 years ago

you are right, i was testing in chrome I will look at it, there's a workaround for firefox and that's the possible source of this error

drvic10k commented 10 years ago

it should be OK now, thanks for reporting

AmusableLemur commented 10 years ago

Thanks for solving it!