don't display a blank line if an item doesn't have a title
This commit is contained in:
parent
83fbe6d366
commit
9ac49b6fcf
3 changed files with 25 additions and 1 deletions
|
|
@ -109,7 +109,10 @@ Ox.IconItem = function(options, self) {
|
|||
.mouseenter(mouseenter)
|
||||
.mouseleave(mouseleave);
|
||||
if (!self.infoIsObject) {
|
||||
that.$text.html(self.title + '<br/><span class="OxInfo">' + self.info + '</span>')
|
||||
that.$text.html(
|
||||
(self.title ? self.title + '<br/>' : '')
|
||||
+ '<span class="OxInfo">' + self.info + '</span>'
|
||||
);
|
||||
} else {
|
||||
that.$text.append(self.title).append(self.info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue