add button tagName check fix

Old $this.attr("tagName") returns undefined, so condition with "TR" was unavailable