mirror of
https://github.com/Viglino/ol-ext.git
synced 2026-01-25 17:36:21 +00:00
[VER] 4.0.29
This commit is contained in:
parent
4e09b872a9
commit
efd315a937
12
dist/ol-ext.js
vendored
12
dist/ol-ext.js
vendored
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* ol-ext - A set of cool extensions for OpenLayers (ol) in node modules structure
|
||||
* @description ol3,openlayers,popup,menu,symbol,renderer,filter,canvas,interaction,split,statistic,charts,pie,LayerSwitcher,toolbar,animation
|
||||
* @version v4.0.27
|
||||
* @version v4.0.28
|
||||
* @author Jean-Marc Viglino
|
||||
* @see https://github.com/Viglino/ol-ext#,
|
||||
* @license BSD-3-Clause
|
||||
@ -8126,9 +8126,9 @@ ol.control.Dialog = class olcontrolDialog extends ol.control.Control {
|
||||
e.preventDefault()
|
||||
}
|
||||
}.bind(this))
|
||||
// Cencel event
|
||||
// Cancel event
|
||||
element.addEventListener('cancel', function(e) {
|
||||
this.dispatchEvent('cancel');
|
||||
setTimeout(function() { this.dispatchEvent('cancel'); }.bind(this))
|
||||
}.bind(this));
|
||||
}
|
||||
// Constructor
|
||||
@ -8371,8 +8371,10 @@ ol.control.Dialog = class olcontrolDialog extends ol.control.Control {
|
||||
e.preventDefault();
|
||||
if (button !== 'submit' || this.get('closeOnSubmit') !== false) this.hide();
|
||||
var inputs = this.getInputs();
|
||||
this.dispatchEvent({ type: 'button', button: button, inputs: inputs });
|
||||
if (typeof (callback) === 'function') callback(button, inputs);
|
||||
setTimeout(function() {
|
||||
this.dispatchEvent({ type: 'button', button: button, inputs: inputs });
|
||||
if (typeof (callback) === 'function') callback(button, inputs);
|
||||
}.bind(this))
|
||||
}.bind(this);
|
||||
return fn;
|
||||
}
|
||||
|
||||
4
dist/ol-ext.min.js
vendored
4
dist/ol-ext.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ol-ext",
|
||||
"version": "4.0.28",
|
||||
"version": "4.0.29",
|
||||
"description": "A set of cool extensions for OpenLayers (ol) in node modules structure",
|
||||
"main": "dist/ol-ext.js",
|
||||
"style": "dist/ol-ext.css",
|
||||
|
||||
@ -48,9 +48,9 @@ var ol_control_Dialog = class olcontrolDialog extends ol_control_Control {
|
||||
e.preventDefault()
|
||||
}
|
||||
}.bind(this))
|
||||
// Cencel event
|
||||
// Cancel event
|
||||
element.addEventListener('cancel', function(e) {
|
||||
this.dispatchEvent('cancel');
|
||||
setTimeout(function() { this.dispatchEvent('cancel'); }.bind(this))
|
||||
}.bind(this));
|
||||
}
|
||||
|
||||
@ -295,8 +295,10 @@ var ol_control_Dialog = class olcontrolDialog extends ol_control_Control {
|
||||
e.preventDefault();
|
||||
if (button !== 'submit' || this.get('closeOnSubmit') !== false) this.hide();
|
||||
var inputs = this.getInputs();
|
||||
this.dispatchEvent({ type: 'button', button: button, inputs: inputs });
|
||||
if (typeof (callback) === 'function') callback(button, inputs);
|
||||
setTimeout(function() {
|
||||
this.dispatchEvent({ type: 'button', button: button, inputs: inputs });
|
||||
if (typeof (callback) === 'function') callback(button, inputs);
|
||||
}.bind(this))
|
||||
}.bind(this);
|
||||
return fn;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user