jQuery Treeview: change hitarea position
I would put the icon "+" on the right side of the item, but I can not change the code:
- // create hitarea if not present
- var hitarea = this.find("div." + CLASSES.hitarea);
- if (!hitarea.length)
- hitarea = this.prepend("<div class=\"" + CLASSES.hitarea + "\"/>").find("div." + CLASSES.hitarea);
- hitarea.removeClass().addClass(CLASSES.hitarea).each(function() {
- var classes = "";
- $.each($(this).parent().attr("class").split(" "), function() {
- classes += this + "-hitarea ";
- });
- $(this).addClass( classes );
- })