forked from 0x2620/oxjs
make annotation map/calendar size/state sticky
This commit is contained in:
parent
36c1cda12a
commit
56cf323110
5 changed files with 162 additions and 111 deletions
|
|
@ -180,17 +180,27 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
paused: function() {
|
||||
that.triggerEvent('paused')
|
||||
},
|
||||
'remove': function(data) {
|
||||
remove: function(data) {
|
||||
that.triggerEvent('remove', Ox.extend({layer: layer.id}, data));
|
||||
},
|
||||
resizewidget: function(data) {
|
||||
that.triggerEvent('resize' + (
|
||||
layer.type == 'event' ? 'calendar' : 'map'
|
||||
), data);
|
||||
},
|
||||
select: function(data) {
|
||||
selectAnnotation(data, i);
|
||||
},
|
||||
submit: function(data) {
|
||||
that.triggerEvent('submit', data);
|
||||
},
|
||||
toggle: function(data) {
|
||||
togglelayer: function(data) {
|
||||
that.triggerEvent('togglelayer', Ox.extend({layer: layer.id}, data));
|
||||
},
|
||||
togglewidget: function(data) {
|
||||
that.triggerEvent('toggle' + (
|
||||
layer.type == 'event' ? 'calendar' : 'map'
|
||||
), data);
|
||||
}
|
||||
})
|
||||
.appendTo(self.$folders);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue