Commit 70d8d5b5 authored by florian.thonier's avatar florian.thonier

segmenter.js : nb selected clone verification before Blast (a maximum of 30...

segmenter.js : nb selected clone verification before Blast (a maximum of 30 clones allowed by blast)
parent 6d7ce889
......@@ -153,7 +153,11 @@ Segment.prototype = {
span.id = "toBlast";
span.className = "button";
span.onclick = function () {
self.sendTo('blast')
if (m.getSelected().length > 30) {
console.log({"type": "flash", "msg": "A maximum of 30 clones are allowed by Blast" , "priority": 1});
} else {
self.sendTo('blast');
}
};
span.appendChild(document.createTextNode("❯ to Blast"));
div_menu.appendChild(span);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment