mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
* Possible fix for the chore & battery dropdown clearing issue - #1560 * Revert formatting changes - #1560 Co-authored-by: Akos Pinter <akos.pinter@mhp.com>
This commit is contained in:
parent
9f9b9d864e
commit
1fafd32aaf
@ -140,7 +140,7 @@ $('#battery_id_text_input').on('blur', function(e)
|
|||||||
{
|
{
|
||||||
possibleOptionElement = $("#battery_id option[value=\"" + gc[2] + "\"]").first();
|
possibleOptionElement = $("#battery_id option[value=\"" + gc[2] + "\"]").first();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (possibleOptionElement.length > 0)
|
if (possibleOptionElement.length > 0)
|
||||||
{
|
{
|
||||||
@ -155,4 +155,5 @@ $('#battery_id_text_input').on('blur', function(e)
|
|||||||
$('#battery_id').data('combobox').refresh();
|
$('#battery_id').data('combobox').refresh();
|
||||||
$('#battery_id').trigger('change');
|
$('#battery_id').trigger('change');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
@ -161,7 +161,6 @@ $('#chore_id_text_input').on('blur', function(e)
|
|||||||
{
|
{
|
||||||
possibleOptionElement = $("#chore_id option[value=\"" + gc[2] + "\"]").first();
|
possibleOptionElement = $("#chore_id option[value=\"" + gc[2] + "\"]").first();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (possibleOptionElement.length > 0)
|
if (possibleOptionElement.length > 0)
|
||||||
{
|
{
|
||||||
@ -176,4 +175,5 @@ $('#chore_id_text_input').on('blur', function(e)
|
|||||||
$('#chore_id').data('combobox').refresh();
|
$('#chore_id').data('combobox').refresh();
|
||||||
$('#chore_id').trigger('change');
|
$('#chore_id').trigger('change');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user