Make presets for new products configurable (closes #92)

This commit is contained in:
Bernd Bestel
2018-10-20 14:55:49 +02:00
parent 5318e79f55
commit 04c93d937e
10 changed files with 92 additions and 1 deletions

View File

@@ -283,8 +283,13 @@ $("form").on("click", "select", function()
$(".user-setting-control").on("change", function()
{
var element = $(this);
var inputType = element.attr("type").toLowerCase();
var settingKey = element.attr("data-setting-key");
var inputType = "unknown";
if (typeof element.attr("type") !== typeof undefined && element.attr("type") !== false)
{
inputType = element.attr("type").toLowerCase();
}
if (inputType === "checkbox")
{