1
0
Fork 0
forked from 0x2620/oxjs

add place controls to map

This commit is contained in:
rlx 2011-10-30 21:05:32 +00:00
commit 3c8430979b
5 changed files with 117 additions and 31 deletions

View file

@ -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() {