mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Changelog and code optimizations for pull request #420
This commit is contained in:
parent
a0fc06f6ed
commit
da2c8d48ac
@ -1,6 +1,7 @@
|
||||
### Calendar improvements
|
||||
- Improved that meal plan events in the iCal calendar export now contain a link to the appropriate meal plan week in the body of the event (thanks @kriddles)
|
||||
|
||||
### General & other fixes
|
||||
### General & other improvements/fixes
|
||||
- Fixed that the meal plan menu entry (sidebar) was not visible when the calendar was disabled (`FEATURE_FLAG_CALENDAR`) (thanks @lwis)
|
||||
- Slightly optimized table loading & search performance (thanks @lwis)
|
||||
- For integration: If a `GET` parameter `closeAfterCreation` is passed to the product edit page, the window will be closed on save (due to Browser restrictions, this only works when the window was opened from JavaScript) (thanks @Forceu)
|
||||
|
@ -49,7 +49,11 @@
|
||||
Grocy.Api.UploadFile($("#product-picture")[0].files[0], 'productpictures', jsonData.picture_file_name,
|
||||
function(result)
|
||||
{
|
||||
if (redirectDestination == "reload")
|
||||
if (GetUriParam("closeAfterCreation") !== undefined)
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
else if (redirectDestination == "reload")
|
||||
{
|
||||
window.location.reload();
|
||||
}
|
||||
@ -67,14 +71,11 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
/* If the GET parameter "closeAfterCreation" was passed to the form, it will
|
||||
automatically close after creating the product. This only works if the window
|
||||
was opened with javascript */
|
||||
if (window.location.href.toLowerCase().includes("closeaftercreation"))
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
if (redirectDestination == "reload")
|
||||
if (GetUriParam("closeAfterCreation") !== undefined)
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
else if (redirectDestination == "reload")
|
||||
{
|
||||
window.location.reload();
|
||||
}
|
||||
@ -119,7 +120,11 @@
|
||||
Grocy.Api.UploadFile($("#product-picture")[0].files[0], 'productpictures', jsonData.picture_file_name,
|
||||
function(result)
|
||||
{
|
||||
if (redirectDestination == "reload")
|
||||
if (GetUriParam("closeAfterCreation") !== undefined)
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
else if (redirectDestination == "reload")
|
||||
{
|
||||
window.location.reload();
|
||||
}
|
||||
@ -137,7 +142,11 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
if (redirectDestination == "reload")
|
||||
if (GetUriParam("closeAfterCreation") !== undefined)
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
else if (redirectDestination == "reload")
|
||||
{
|
||||
window.location.reload();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user