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:
parent
ae82696600
commit
3c94f44a99
15 changed files with 437 additions and 255 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue