support unsetting Ox.Select title
This commit is contained in:
parent
d7f54bc7e4
commit
4329bd5408
1 changed files with 5 additions and 2 deletions
|
@ -58,10 +58,13 @@ Ox.Select = function(options, self) {
|
|||
self.$title.css({width: getTitleWidth() + 'px'});
|
||||
},
|
||||
title: function() {
|
||||
var title = self.options.title
|
||||
? self.options.title
|
||||
: getItem(self.options.value).title;
|
||||
if (self.options.type == 'text') {
|
||||
self.$title.html(self.options.title);
|
||||
self.$title.html(title);
|
||||
} else {
|
||||
self.$button.options({title: self.options.title});
|
||||
self.$button.options({title: title});
|
||||
}
|
||||
},
|
||||
width: function() {
|
||||
|
|
Loading…
Reference in a new issue