forked from 0x2620/oxjs
add place controls to map
This commit is contained in:
parent
2555dbb4ea
commit
3c8430979b
5 changed files with 117 additions and 31 deletions
|
|
@ -148,15 +148,18 @@ Ox.Select = function(options, self) {
|
|||
|
||||
function changeMenu(data) {
|
||||
//Ox.print('clickMenu: ', self.options.id, data)
|
||||
self.checked = self.optionGroup.checked();
|
||||
self.options.value = data.checked[0].id;
|
||||
self.$title && self.$title.html(
|
||||
self.options.title ? self.options.title :
|
||||
data.checked[0].title
|
||||
);
|
||||
that.triggerEvent('change', {
|
||||
selected: data.checked
|
||||
});
|
||||
if (self.options.selectable) {
|
||||
self.checked = self.optionGroup.checked();
|
||||
self.options.value = data.checked[0].id;
|
||||
self.$title && self.$title.html(
|
||||
self.options.title ? self.options.title : data.checked[0].title
|
||||
);
|
||||
that.triggerEvent('change', {
|
||||
selected: data.checked
|
||||
});
|
||||
} else {
|
||||
that.triggerEvent('click', data);
|
||||
}
|
||||
}
|
||||
|
||||
function hideMenu() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue