mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-03 01:46:02 -05:00
Prevent "Remove" from removing the last html input for options
with multiple values.
This commit is contained in:
parent
0285f0bdc0
commit
5d29ec0dbd
@ -271,14 +271,11 @@ var Config = {
|
||||
Effect.BlindDown(newSpan,{duration: 0.2});
|
||||
},
|
||||
_removeItemEvent: function (e) {
|
||||
var div = Event.element(e);
|
||||
while (div.nodeName.toLowerCase() != 'div') {
|
||||
div = div.parentNode;
|
||||
}
|
||||
var div = Event.element(e).parentNode;
|
||||
Config._removeItem(div);
|
||||
},
|
||||
_removeItem: function(div,noAnimation) {
|
||||
if (div.parentNode.childNodes.length > 1) {
|
||||
if (div.parentNode.getElementsByTagName('input').length > 1) {
|
||||
if (noAnimation) {
|
||||
// cancelForm uses a loop to delete elements, the loop can't wait
|
||||
// for Effect.BlindUp to finish
|
||||
|
Loading…
x
Reference in New Issue
Block a user