mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
An icon is not needed when not showing an userentity in the sidebar menu (references #242)
This commit is contained in:
@@ -64,5 +64,21 @@ $('#userentity-form input').keydown(function(event)
|
||||
}
|
||||
});
|
||||
|
||||
$("#show_in_sidebar_menu").on("click", function()
|
||||
{
|
||||
if (this.checked)
|
||||
{
|
||||
$("#icon_css_class").removeAttr("disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#icon_css_class").attr("disabled", "");
|
||||
}
|
||||
});
|
||||
|
||||
$('#name').focus();
|
||||
Grocy.FrontendHelpers.ValidateForm('userentity-form');
|
||||
|
||||
// Click twice to trigger on-click but not change the actual checked state
|
||||
$("#show_in_sidebar_menu").click();
|
||||
$("#show_in_sidebar_menu").click();
|
||||
|
Reference in New Issue
Block a user