Merge pull request #14749 from MarekBenjamin/bugfix/14748-frio-filer-dialog-colors

Fix filer dialog colors
This commit is contained in:
Hypolite Petovan 2025-02-04 13:22:09 -05:00 committed by GitHub
commit df17de7ea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 33 additions and 23 deletions

View file

@ -326,7 +326,7 @@ class Conversation
'$ispublic' => $this->l10n->t('Visible to <strong>everybody</strong>'), '$ispublic' => $this->l10n->t('Visible to <strong>everybody</strong>'),
'$linkurl' => $this->l10n->t('Please enter a image/video/audio/webpage URL:'), '$linkurl' => $this->l10n->t('Please enter a image/video/audio/webpage URL:'),
'$term' => $this->l10n->t('Tag term:'), '$term' => $this->l10n->t('Tag term:'),
'$fileas' => $this->l10n->t('Save to Folder:'), '$fileas' => $this->l10n->t('Save to Folder'),
'$whereareu' => $this->l10n->t('Where are you right now?'), '$whereareu' => $this->l10n->t('Where are you right now?'),
'$delitems' => $this->l10n->t("Delete item\x28s\x29?"), '$delitems' => $this->l10n->t("Delete item\x28s\x29?"),
'$is_mobile' => $this->mode->isMobile(), '$is_mobile' => $this->mode->isMobile(),

View file

@ -56,7 +56,7 @@ class SaveTag extends BaseModule
$tpl = Renderer::getMarkupTemplate("filer_dialog.tpl"); $tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");
echo Renderer::replaceMacros($tpl, [ echo Renderer::replaceMacros($tpl, [
'$field' => ['term', $this->t("Save to Folder:"), '', '', $filetags, $this->t('- select -')], '$field' => ['term', $this->t("Folder:"), '', '', $filetags, $this->t('- select -')],
'$submit' => $this->t('Save'), '$submit' => $this->t('Save'),
]); ]);

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2025.02-dev\n" "Project-Id-Version: 2025.02-dev\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-04 04:54+0000\n" "POT-Creation-Date: 2025-02-04 13:20-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -1243,8 +1243,8 @@ msgstr ""
msgid "Tag term:" msgid "Tag term:"
msgstr "" msgstr ""
#: src/Content/Conversation.php:329 src/Module/Filer/SaveTag.php:59 #: src/Content/Conversation.php:329
msgid "Save to Folder:" msgid "Save to Folder"
msgstr "" msgstr ""
#: src/Content/Conversation.php:330 #: src/Content/Conversation.php:330
@ -7024,6 +7024,10 @@ msgstr ""
msgid "Item was not removed" msgid "Item was not removed"
msgstr "" msgstr ""
#: src/Module/Filer/SaveTag.php:59
msgid "Folder:"
msgstr ""
#: src/Module/Filer/SaveTag.php:59 #: src/Module/Filer/SaveTag.php:59
msgid "- select -" msgid "- select -"
msgstr "" msgstr ""
@ -8179,8 +8183,8 @@ msgstr ""
msgid "User \"%s\" deleted" msgid "User \"%s\" deleted"
msgstr "" msgstr ""
#: src/Module/Moderation/Users/Active.php:156 #: src/Module/Moderation/Users/Active.php:157
#: src/Module/Moderation/Users/Index.php:167 #: src/Module/Moderation/Users/Index.php:168
#, php-format #, php-format
msgid "User \"%s\" blocked" msgid "User \"%s\" blocked"
msgstr "" msgstr ""
@ -8197,8 +8201,8 @@ msgstr[1] ""
msgid "Blocked Users" msgid "Blocked Users"
msgstr "" msgstr ""
#: src/Module/Moderation/Users/Blocked.php:154 #: src/Module/Moderation/Users/Blocked.php:155
#: src/Module/Moderation/Users/Index.php:172 #: src/Module/Moderation/Users/Index.php:174
#, php-format #, php-format
msgid "User \"%s\" unblocked" msgid "User \"%s\" unblocked"
msgstr "" msgstr ""

View file

@ -7,5 +7,5 @@
{{include file="field_combobox.tpl"}} {{include file="field_combobox.tpl"}}
<div class="settings-submit-wrapper"> <div class="settings-submit-wrapper">
<input id="filer_save" type="button" class="settings-submit" value="{{$submit}}" /> <input id="filer_save" type="button" class="btn btn-primary" value="{{$submit}}" />
</div> </div>

View file

@ -296,27 +296,33 @@
} }
function itemFiler(id) { function itemFiler(id) {
const bordercolor = $("input").css("border-color"); var modal = $('#modal').modal();
$.get('filer/', function (data) { $.get('filer/', function (data) {
$.colorbox({html: data}); modal
$("#id_term").keypress(function () { .find('#modal-body')
$(this).css("border-color", bordercolor); .append(data);
})
$("#select_term").change(function () { modal
$("#id_term").css("border-color", bordercolor); .find('#modal-header h4')
}) .append("{{$fileas}}");
// Ensure focus after the modal is fully visible
modal.on('shown.bs.modal', function () {
$('#id_term').trigger('focus');
});
$("#filer_save").click(function (e) { $("#filer_save").click(function (e) {
e.preventDefault(); e.preventDefault();
const reply = $("#id_term").val(); const term = $("#id_term").val();
if (reply && reply.length) { if (term && term.length) {
commentBusy = true; commentBusy = true;
formModified = true; formModified = true;
$('body').css('cursor', 'wait'); $('body').css('cursor', 'wait');
$.get('filer/' + id + '?term=' + reply) $.get('filer/' + id + '?term=' + term)
.done(function () { .done(function () {
$.colorbox.close(); $('#modal-body').empty();
$('#modal').modal('hide');
resetFormModifiedFlag(); resetFormModifiedFlag();
}) })
.always(function () { .always(function () {