Skip to content

Commit

Permalink
interface tweak for content and image pickers
Browse files Browse the repository at this point in the history
  • Loading branch information
yohsii committed Mar 12, 2022
1 parent a183d35 commit d4138e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
}
container.find(".addItem").unbind().click(function (e) {
if(overlayEl)
overlayEl.remove();
if (selected_container.find(".selected_node").length >= maxPick) {
msg(undefined, "you cannot select any more, max selection is set to " + maxPick, undefined, undefined);
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@
loadData();
var overlayEl = null;
container.find(".addImage").unbind().click(function (e) {
if(overlayEl)
overlayEl.remove();
if (selected_container.find(".item").length >= maxPick) {
msg(undefined, "you cannot select any more, max selection is set to " + maxPick, undefined, undefined);
return false;
Expand Down

0 comments on commit d4138e3

Please sign in to comment.