luci-base: modal accessibility fix, wrap XHR.stop()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b80cea293e
commit
1eea921df0
1 changed files with 5 additions and 1 deletions
|
@ -74,6 +74,7 @@
|
||||||
return XHR.get(url, data, cb);
|
return XHR.get(url, data, cb);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
stop: function(entry) { XHR.stop(entry) },
|
||||||
halt: function() { XHR.halt() },
|
halt: function() { XHR.halt() },
|
||||||
run: function() { XHR.run() },
|
run: function() { XHR.run() },
|
||||||
|
|
||||||
|
@ -310,7 +311,10 @@
|
||||||
function LuCI(env) {
|
function LuCI(env) {
|
||||||
this.env = env;
|
this.env = env;
|
||||||
|
|
||||||
modalDiv = document.body.appendChild(this.dom.create('div', { id: 'modal_overlay' }, this.dom.create('div', { class: 'modal' })));
|
modalDiv = document.body.appendChild(
|
||||||
|
this.dom.create('div', { id: 'modal_overlay' },
|
||||||
|
this.dom.create('div', { class: 'modal', role: 'dialog', 'aria-modal': true })));
|
||||||
|
|
||||||
tooltipDiv = document.body.appendChild(this.dom.create('div', { class: 'cbi-tooltip' }));
|
tooltipDiv = document.body.appendChild(this.dom.create('div', { class: 'cbi-tooltip' }));
|
||||||
|
|
||||||
document.addEventListener('mouseover', this.showTooltip.bind(this), true);
|
document.addEventListener('mouseover', this.showTooltip.bind(this), true);
|
||||||
|
|
Loading…
Reference in a new issue