1
0
Fork 0
forked from 0x2620/oxjs

make annotation map/calendar size/state sticky

This commit is contained in:
rlx 2012-01-14 17:09:55 +05:30
commit 56cf323110
5 changed files with 162 additions and 111 deletions

View file

@ -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);