mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
fixes #1239 tags refresh
tags now refresh when creating a new one, also remove wrong translation of display and input focus when clicking on the add button
This commit is contained in:
@@ -91,6 +91,7 @@ function updateBadge() {
|
||||
//Add a tag
|
||||
$('.add-tag-container').on('click', function() {
|
||||
$('#add-tag').addClass('input-mode');
|
||||
$('#add-tag-input').focus();
|
||||
$('.tag-info').hide();
|
||||
})
|
||||
|
||||
@@ -116,10 +117,11 @@ $('#add-tag').submit(function (e) {
|
||||
loadState.changeHTML($('#add-tag .icon-validate') , "<i class='icon-spin6 animate-spin'> </i>")
|
||||
loadState.changeAttribute($('#add-tag .icon-validate'), 'style','pointer-event:none')
|
||||
addTag($('#add-tag-input').val()).then(function () {
|
||||
showMessage(str_tag_created.replace('%s', $('#add-tag-input').val()))
|
||||
loadState.reverse();
|
||||
showMessage(str_tag_created.replace('%s', $('#add-tag-input').val()));
|
||||
$('#add-tag-input').val("");
|
||||
$('#add-tag').removeClass('input-mode');
|
||||
$("#search-tag .search-input").trigger("input");
|
||||
loadState.reverse();
|
||||
}).catch(message => {
|
||||
loadState.reverse();
|
||||
showError(message)
|
||||
|
||||
@@ -98,7 +98,7 @@ var str_tag_found = '{'<b>%d</b> tag found'|@translate}';
|
||||
</div>
|
||||
|
||||
<div id="MergeOptionsBlock">
|
||||
<p>{'Choose which tag to merge these tags into'|@translate}</p>
|
||||
<p>{'Choose which tag to merge these tags into'|@translate}</p>
|
||||
<p class="ItalicTextInfo">{'The other tags will be removed'|@translate}</p>
|
||||
<div class="MergeOptionsContainer">
|
||||
<select id="MergeOptionsChoices">
|
||||
@@ -165,7 +165,7 @@ var str_tag_found = '{'<b>%d</b> tag found'|@translate}';
|
||||
<div class="emptyResearch"> {'No tag found'|@translate} </div>
|
||||
<div class="tag-pagination">
|
||||
<div class="pagination-per-page">
|
||||
<span class="thumbnailsActionsShow" style="font-weight: bold;">Afficher</span>
|
||||
<span class="thumbnailsActionsShow" style="font-weight: bold;">{'Display'|@translate}</span>
|
||||
<a>100</a>
|
||||
<a>200</a>
|
||||
<a>500</a>
|
||||
|
||||
@@ -1054,7 +1054,6 @@ $lang['At least 2 selected tags are needed to merge'] = 'Au moins 2 tags doivent
|
||||
$lang['Merge'] = 'Fusionner';
|
||||
$lang['Choose which tag to merge these tags into'] = 'Choisissez dans quel tag vont être fusionné les tags';
|
||||
$lang['The other tags will be removed'] = 'Les autres tags seront supprimés';
|
||||
$lang['Display'] = 'Afficher';
|
||||
$lang['Select'] = 'Sélectionner';
|
||||
$lang['Tag Manager'] = 'Gestionnaire de tags';
|
||||
$lang['No tag found'] = 'Pas de tag trouvé';
|
||||
|
||||
Reference in New Issue
Block a user