-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] Added possibility to batch remove a tag #40613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 37 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
3490c85
Update tag.php
beni71 0344544
Added possibility to batch remove a tag
beni71 5a433a7
Changed text keys
beni71 d9bf8bf
Reverted string change
beni71 a06a386
Merge branch '5.0-dev' into beni71-23185
beni71 a44b1b0
Merge branch '5.0-dev' into beni71-23185
HLeithner c369d6d
Merge branch '5.0-dev' into beni71-23185
beni71 ba2293d
Merge branch '5.0-dev' into beni71-23185
QuyTon 0bffe0d
Merge branch '5.0-dev' into beni71-23185
beni71 60b14d9
Merge branch '5.1-dev' into beni71-23185
beni71 59189e4
Merge branch '5.1-dev' into beni71-23185
beni71 dc8994a
Merge branch '5.1-dev' into beni71-23185
beni71 53b590e
Merge branch '5.1-dev' into beni71-23185
QuyTon 8ecfef2
Merge branch '5.1-dev' into beni71-23185
beni71 59588d4
Merge branch '5.1-dev' into beni71-23185
beni71 8ede036
Merge branch 'beni71-23185' of https://github.com/beni71/joomla-cms i…
beni71 926301c
Merge branch '5.1-dev' into beni71-23185
beni71 ec84c96
Merge branch '5.1-dev' into beni71-23185
beni71 ae898c5
Merge branch '5.1-dev' into beni71-23185
beni71 6d95ca6
Merge branch '5.1-dev' into beni71-23185
beni71 70fa69c
Merge branch '5.1-dev' into beni71-23185
beni71 2053bf7
Merge branch '6.0-dev' into beni71-23185
bembelimen 6bb0927
Merge branch 'beni71-23185' of https://github.com/beni71/joomla-cms i…
beni71 ed50b68
Merge branch 'beni71-23185' of https://github.com/beni71/joomla-cms i…
beni71 bfd2a91
Merge branch '6.0-dev' into beni71-23185
laoneo c5bb746
Merge branch '6.0-dev' into beni71-23185
beni71 3c17486
Merge branch '6.0-dev' into beni71-23185
beni71 e132af5
Deprecated batchTag function for b/c and created a new batchTags func…
beni71 34b3006
Fixed function docu spacing.
beni71 d805e69
Fixed function docu spacing
beni71 a460918
Merge branch '6.0-dev' into beni71-23185
beni71 bae7589
Merge branch '6.0-dev' into beni71-23185
bembelimen 6e3e9c7
Merge branch '6.0-dev' into beni71-23185
Bodge-IT 26b6441
Merge branch '6.0-dev' into beni71-23185
beni71 20c2030
Deprecated postStoreProcess function for b/c and created a new postSt…
beni71 10b3993
Merge branch 'beni71-23185' of https://github.com/beni71/joomla-cms i…
beni71 a056cfd
Simplified else if structure.
beni71 e03b7b8
Fixed texts in both language files.
beni71 f4ed759
Merge branch '6.0-dev' into beni71-23185
beni71 8d129ec
Merge branch '6.0-dev' into beni71-23185
Bodge-IT 840059a
Merge branch '6.0-dev' into beni71-23185
Bodge-IT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
build/media_source/layouts/js/joomla/html/batch/batch-tag-addremove.es6.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
(() => { | ||
const onSelect = () => { | ||
const batchTag = document.getElementById('batch-tag-id'); | ||
const batchTagAddRemove = document.getElementById('batch-tag-addremove'); | ||
let batchSelector; | ||
|
||
const onChange = () => { | ||
if (!batchSelector.value | ||
|| (batchSelector.value && parseInt(batchSelector.value, 10) === 0)) { | ||
batchTagAddRemove.classList.add('hidden'); | ||
} else { | ||
batchTagAddRemove.classList.remove('hidden'); | ||
} | ||
}; | ||
|
||
if (batchTag) { | ||
batchSelector = batchTag; | ||
} | ||
|
||
if (batchTagAddRemove) { | ||
batchTagAddRemove.classList.add('hidden'); | ||
} | ||
|
||
if (batchTagAddRemove) { | ||
batchSelector.addEventListener('change', onChange); | ||
} | ||
|
||
// Cleanup | ||
document.removeEventListener('DOMContentLoaded', onSelect, true); | ||
}; | ||
|
||
// Document loaded | ||
document.addEventListener('DOMContentLoaded', onSelect, true); | ||
|
||
// Joomla updated | ||
document.addEventListener('joomla:updated', onSelect, true); | ||
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.