mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update to 18.06
This commit is contained in:
parent
ce9432d93b
commit
110470cb85
50 changed files with 335 additions and 367 deletions
|
@ -627,6 +627,18 @@ function cbi_init() {
|
|||
s.parentNode.classList.add('cbi-tooltip-container');
|
||||
});
|
||||
|
||||
document.querySelectorAll('.cbi-section-remove > input[name^="cbi.rts"]').forEach(function(i) {
|
||||
var handler = function(ev) {
|
||||
var bits = this.name.split(/\./),
|
||||
section = document.getElementById('cbi-' + bits[2] + '-' + bits[3]);
|
||||
|
||||
section.style.opacity = (ev.type === 'mouseover') ? 0.5 : '';
|
||||
};
|
||||
|
||||
i.addEventListener('mouseover', handler);
|
||||
i.addEventListener('mouseout', handler);
|
||||
});
|
||||
|
||||
cbi_d_update();
|
||||
}
|
||||
|
||||
|
@ -818,9 +830,9 @@ function cbi_dynlist_init(parent, datatype, optional, choices)
|
|||
t.placeholder = holder;
|
||||
}
|
||||
|
||||
var b = document.createElement('img');
|
||||
b.src = cbi_strings.path.resource + ((i+1) < values.length ? '/cbi/remove.gif' : '/cbi/add.gif');
|
||||
b.className = 'cbi-image-button';
|
||||
var b = E('div', {
|
||||
class: 'cbi-button cbi-button-' + ((i+1) < values.length ? 'remove' : 'add')
|
||||
}, (i+1) < values.length ? '×' : '+');
|
||||
|
||||
parent.appendChild(t);
|
||||
parent.appendChild(b);
|
||||
|
@ -986,8 +998,7 @@ function cbi_dynlist_init(parent, datatype, optional, choices)
|
|||
input = input.previousSibling;
|
||||
}
|
||||
|
||||
if (se.src.indexOf('remove') > -1)
|
||||
{
|
||||
if (se.classList.contains('cbi-button-remove')) {
|
||||
input.value = '';
|
||||
|
||||
cbi_dynlist_keydown({
|
||||
|
@ -995,8 +1006,7 @@ function cbi_dynlist_init(parent, datatype, optional, choices)
|
|||
keyCode: 8
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
cbi_dynlist_keydown({
|
||||
target: input,
|
||||
keyCode: 13
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue