mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Fixed FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS clear shopping list confirm message handling (fixes #1315)
This commit is contained in:
parent
cebf7a3e54
commit
3608eec8fb
@ -2244,3 +2244,6 @@ msgstr ""
|
||||
|
||||
msgid "Section"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure to empty the shopping list?"
|
||||
msgstr ""
|
||||
|
@ -195,8 +195,14 @@ $(document).on('click', '#add-overdue-expired-products', function(e)
|
||||
|
||||
$(document).on('click', '#clear-shopping-list', function(e)
|
||||
{
|
||||
var confirmMessage = __t('Are you sure to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text());
|
||||
if (!BoolVal(Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS))
|
||||
{
|
||||
confirmMessage = __t('Are you sure to empty the shopping list?');
|
||||
}
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text()),
|
||||
message: confirmMessage,
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user