mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Never show close buttons in modal dialogs, this is not needed
This commit is contained in:
parent
e727a38071
commit
3b29110500
@ -393,7 +393,8 @@ Grocy.FrontendHelpers.ShowGenericError = function(message, exception)
|
||||
{
|
||||
bootbox.alert({
|
||||
title: __t('Error details'),
|
||||
message: JSON.stringify(exception, null, 4)
|
||||
message: JSON.stringify(exception, null, 4),
|
||||
closeButton: false
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -49,6 +49,7 @@ $(document).on('click', '.battery-delete-button', function (e)
|
||||
className: 'btn-danger'
|
||||
}
|
||||
},
|
||||
closeButton: false,
|
||||
callback: function(result)
|
||||
{
|
||||
if (result === true)
|
||||
|
@ -27,7 +27,8 @@ $("#ical-button").on("click", function(e)
|
||||
{
|
||||
bootbox.alert({
|
||||
title: __t('Share/Integrate calendar (iCal)'),
|
||||
message: __t('Use the following (public) URL to share or integrate the calendar in iCal format') + '<input type="text" class="form-control form-control-sm mt-2 easy-link-copy-textbox" value="' + result.url + '">'
|
||||
message: __t('Use the following (public) URL to share or integrate the calendar in iCal format') + '<input type="text" class="form-control form-control-sm mt-2 easy-link-copy-textbox" value="' + result.url + '">',
|
||||
closeButton: false
|
||||
});
|
||||
},
|
||||
function(xhr)
|
||||
|
@ -39,6 +39,7 @@ $(document).on('click', '.chore-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete chore "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -145,6 +145,7 @@ $(document).on("click", "#barcodescanner-start-button", function(e)
|
||||
},
|
||||
size: 'big',
|
||||
backdrop: true,
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
cancel: {
|
||||
label: __t('Cancel'),
|
||||
|
@ -169,6 +169,7 @@ $('#product_id_text_input').on('blur', function(e)
|
||||
},
|
||||
size: 'large',
|
||||
backdrop: true,
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
cancel: {
|
||||
label: __t('Cancel'),
|
||||
|
@ -87,6 +87,7 @@ $(document).on('click', '.equipment-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete equipment "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -39,6 +39,7 @@ $(document).on('click', '.location-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete location "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -45,6 +45,7 @@ $(document).on('click', '.apikey-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete API key "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -219,6 +219,7 @@ $(document).on('click', '.recipe-order-missing-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to put all missing ingredients for recipe "%s" on the shopping list?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
@ -266,6 +267,7 @@ $(document).on('click', '.recipe-consume-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "check only if a single unit is in stock" will be ignored)?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -376,6 +376,7 @@ $(document).on('click', '.qu-conversion-delete-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to remove this conversion?'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -39,6 +39,7 @@ $(document).on('click', '.product-group-delete-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete product group "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -63,6 +63,7 @@ $(document).on('click', '.product-delete-button', function (e)
|
||||
{
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete product "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
@ -95,7 +96,8 @@ $(document).on('click', '.product-delete-button', function (e)
|
||||
{
|
||||
bootbox.alert({
|
||||
title: __t('Delete not possible'),
|
||||
message: __t('This product cannot be deleted because it is in stock, please remove the stock amount first.') + '<br><br>' + __t('Stock amount') + ': ' + stockAmount + ' ' + __n(stockAmount, productDetails.quantity_unit_stock.name, productDetails.quantity_unit_stock.name_plural)
|
||||
message: __t('This product cannot be deleted because it is in stock, please remove the stock amount first.') + '<br><br>' + __t('Stock amount') + ': ' + stockAmount + ' ' + __n(stockAmount, productDetails.quantity_unit_stock.name, productDetails.quantity_unit_stock.name_plural),
|
||||
closeButton: false
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -147,6 +147,7 @@ $(document).on('click', '.qu-conversion-delete-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to remove this conversion?'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -39,6 +39,7 @@ $(document).on('click', '.quantityunit-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete quantity unit "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: 'Yes',
|
||||
|
@ -144,6 +144,7 @@ $(document).on('click', '.recipe-pos-delete-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete recipe ingredient "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
@ -181,6 +182,7 @@ $(document).on('click', '.recipe-include-delete-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to remove included recipe "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -90,6 +90,7 @@ $("#selectedRecipeDeleteButton").on('click', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete recipe "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
@ -126,6 +127,7 @@ $(document).on('click', '.recipe-order-missing-button', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to put all missing ingredients for recipe "%s" on the shopping list?', objectName) + "<br><br>" + __t("Uncheck ingredients to not put them on the shopping list") + ":" + $("#missing-recipe-pos-list")[0].outerHTML.replace("d-none", ""),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
@ -171,6 +173,7 @@ $("#selectedRecipeConsumeButton").on('click', function(e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "check only if a single unit is in stock" will be ignored)?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -71,6 +71,7 @@ $("#delete-selected-shopping-list").on("click", function()
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete shopping list "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
@ -143,6 +144,7 @@ $(document).on('click', '#clear-shopping-list', function(e)
|
||||
{
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text()),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -39,6 +39,7 @@ $(document).on('click', '.task-category-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete task category "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -137,6 +137,7 @@ $(document).on('click', '.delete-task-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete task "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -39,6 +39,7 @@ $(document).on('click', '.userentity-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete userentity "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -51,6 +51,7 @@ $(document).on('click', '.userfield-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete user field "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -38,6 +38,7 @@ $(document).on('click', '.userobject-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete this userobject?'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@ -39,6 +39,7 @@ $(document).on('click', '.user-delete-button', function (e)
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete user "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user