mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-2894 #comment Fix Quarantine allow to substitute without selecting target Record #time 2h"
git commit -m PHRAS-2894
This commit is contained in:
@@ -356,15 +356,20 @@
|
||||
var elements = [];
|
||||
var nbElement = 0;
|
||||
|
||||
if (nbProposals >= 1) {
|
||||
|
||||
|
||||
if (nbProposals > 1) {
|
||||
elements = $(".selected", container);
|
||||
nbElement = elements.length;
|
||||
} else {
|
||||
return false;
|
||||
} else if (nbProposals == 1) {
|
||||
elements = $(".records-subititution > div", container);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (nbElement === 0) {
|
||||
if (nbElement === 0 && nbProposals > 1) {
|
||||
alert(language.selectOneRecord);
|
||||
|
||||
return false;
|
||||
} else if (nbElement > 1) {
|
||||
alert(language.onlyOneRecord);
|
||||
|
Reference in New Issue
Block a user