1
0
Fork 0
forked from 0x2620/oxjs

fix bugs in video editor; begin to implement new list map mode that allows for defining/clearing places

This commit is contained in:
rlx 2012-02-04 08:58:46 +00:00
commit 3c94f44a99
15 changed files with 437 additions and 255 deletions

View file

@ -849,7 +849,8 @@ Ox.Map = function(options, self) {
});
if (self.options.find) {
self.$findInput.value(self.options.find)
self.$findInput
.value(self.options.find)
.triggerEvent('submit', {value: self.options.find});
} else {
if (self.options.selected) {
@ -1388,7 +1389,11 @@ Ox.Map = function(options, self) {
}
self.setOption = function(key, value) {
if (key == 'height' || key == 'width') {
if (key == 'find') {
self.$findInput
.value(self.options.find)
.triggerEvent('submit', {value: self.options.find});
} else if (key == 'height' || key == 'width') {
that.$element.css(key, value + 'px');
that.resizeMap();
} else if (key == 'places') {