Skip to content

Commit

Permalink
[K6.2] Bootstrap alert for error message for upload aren't BS5
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Dec 9, 2023
1 parent c9ce48f commit 6482531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/media/kunena/core/js/upload.main.js
Expand Up @@ -355,7 +355,7 @@ jQuery(function ($) {
const filecoutntmp = Object.keys(data['files']).length + fileCount;

if (filecoutntmp > Joomla.getOptions('com_kunena.kunena_upload_files_maxfiles')) {
$('<div class="alert alert-danger" id="alert_max_file"><button class="close" type="button" data-dismiss="alert">×</button>' + Joomla.Text._('COM_KUNENA_UPLOADED_LABEL_ERROR_REACHED_MAX_NUMBER_FILES') + '</div>').insertBefore($('#files'));
$('<div class="alert alert-danger alert-dismissible fade show" id="alert_max_file" role="alert"> ' + Joomla.Text._('COM_KUNENA_UPLOADED_LABEL_ERROR_REACHED_MAX_NUMBER_FILES') + ' <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>').insertBefore($('#files'));

$('#form_submit_button').prop('disabled', false);

Expand All @@ -373,7 +373,7 @@ jQuery(function ($) {
const filecoutntmp = Object.keys(data['files']).length + fileCount;

if (filecoutntmp > Joomla.getOptions('com_kunena.kunena_upload_files_maxfiles')) {
$('<div class="alert alert-danger" id="alert_max_file"><button class="close" type="button" data-dismiss="alert">×</button>' + Joomla.Text._('COM_KUNENA_UPLOADED_LABEL_ERROR_REACHED_MAX_NUMBER_FILES') + '</div>').insertBefore($('#files'));
$('<div class="alert alert-danger alert-dismissible fade show" id="alert_max_file" role="alert"> ' + Joomla.Text._('COM_KUNENA_UPLOADED_LABEL_ERROR_REACHED_MAX_NUMBER_FILES') + ' <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>').insertBefore($('#files'));

$('#form_submit_button').prop('disabled', false);

Expand Down

0 comments on commit 6482531

Please sign in to comment.