emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 115 forks source link

[Resolved] Reached Maximum selected element but still adding one new input #131

Open husmen73 opened 11 years ago

husmen73 commented 11 years ago

Hi,

If you are set maxitem to any number and if selected maximum item on input, fcbk still adding new input to ul.

If you change this code, you will be resolve this problem.

FIND IN jquery.fcbkcomplete.js:

  }

  function addInput(focusme) {

AND REPLACE WITH:

    addInput();
  }

  function addInput(focusme) {
      if (!maxItems()) {
        return false;
      }