mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Added more product actions on the stock overview page (closes #327)
This commit is contained in:
@@ -348,6 +348,11 @@ Grocy.FrontendHelpers = { };
|
||||
Grocy.FrontendHelpers.ValidateForm = function(formId)
|
||||
{
|
||||
var form = document.getElementById(formId);
|
||||
if (form === null || form === undefined)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (form.checkValidity() === true)
|
||||
{
|
||||
$(form).find(':submit').removeClass('disabled');
|
||||
@@ -544,3 +549,17 @@ if (!Grocy.CalendarFirstDayOfWeek.isEmpty())
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(window).on("message", function(e)
|
||||
{
|
||||
var data = e.originalEvent.data;
|
||||
|
||||
if (data.Message === "ShowSuccessMessage")
|
||||
{
|
||||
toastr.success(data.Payload);
|
||||
}
|
||||
else if (data.Message === "CloseAllModals")
|
||||
{
|
||||
bootbox.hideAll();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user