mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 07:53:14 +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 elements = [];
|
||||||
var nbElement = 0;
|
var nbElement = 0;
|
||||||
|
|
||||||
if (nbProposals >= 1) {
|
|
||||||
|
|
||||||
|
if (nbProposals > 1) {
|
||||||
elements = $(".selected", container);
|
elements = $(".selected", container);
|
||||||
nbElement = elements.length;
|
nbElement = elements.length;
|
||||||
} else {
|
} else if (nbProposals == 1) {
|
||||||
return false;
|
elements = $(".records-subititution > div", container);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nbElement === 0) {
|
if (nbElement === 0 && nbProposals > 1) {
|
||||||
alert(language.selectOneRecord);
|
alert(language.selectOneRecord);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
} else if (nbElement > 1) {
|
} else if (nbElement > 1) {
|
||||||
alert(language.onlyOneRecord);
|
alert(language.onlyOneRecord);
|
||||||
|
Reference in New Issue
Block a user