mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-base and luci-mod-admin-full to latest upstream version
This commit is contained in:
parent
7a86a163f5
commit
602a83668e
74 changed files with 7498 additions and 3067 deletions
|
@ -1306,6 +1306,28 @@ function cbi_tag_last(container)
|
|||
}
|
||||
}
|
||||
|
||||
function cbi_submit(elem, name, value, action)
|
||||
{
|
||||
var form = elem.form || findParent(elem, 'form');
|
||||
|
||||
if (!form)
|
||||
return false;
|
||||
|
||||
if (action)
|
||||
form.action = action;
|
||||
|
||||
if (name) {
|
||||
var hidden = form.querySelector('input[type="hidden"][name="%s"]'.format(name)) ||
|
||||
E('input', { type: 'hidden', name: name });
|
||||
|
||||
hidden.value = value || '1';
|
||||
form.appendChild(hidden);
|
||||
}
|
||||
|
||||
form.submit();
|
||||
return true;
|
||||
}
|
||||
|
||||
String.prototype.format = function()
|
||||
{
|
||||
if (!RegExp)
|
||||
|
@ -1498,6 +1520,15 @@ String.nobr = function()
|
|||
return ''.nobr.apply(arguments[0], a);
|
||||
}
|
||||
|
||||
if (window.NodeList && !NodeList.prototype.forEach) {
|
||||
NodeList.prototype.forEach = function (callback, thisArg) {
|
||||
thisArg = thisArg || window;
|
||||
for (var i = 0; i < this.length; i++) {
|
||||
callback.call(thisArg, this[i], i, this);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
var dummyElem, domParser;
|
||||
|
||||
|
@ -2072,10 +2103,10 @@ function cbi_update_table(table, data, placeholder) {
|
|||
var trow = E('div', { 'class': 'tr' });
|
||||
|
||||
for (var i = 0; i < titles.length; i++) {
|
||||
var text = titles[i].innerText;
|
||||
var text = (titles[i].innerText || '').trim();
|
||||
var td = trow.appendChild(E('div', {
|
||||
'class': titles[i].className,
|
||||
'data-title': text ? text.trim() : null
|
||||
'data-title': (text !== '') ? text : null
|
||||
}, row[i] || ''));
|
||||
|
||||
td.classList.remove('th');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue