loopj/jquery-tokeninput — pull request #267 by cthielen (2012-01-31 19:46:55+00:00)
Title: Adds setting for default text when token input is empty

I have a number of forms where I keep the "view mode" and "edit mode" roughly the same - disabling inputs instead of replacing them with plain text.

For Token Input, I disable it, and hide it's styling. This is problematic when there are no tokens, as the user, in "view mode", has no indication there's even an element there. If the Token Input represented members in a group, I would like to have default text reading "No members", for instance.

This pull request is a very non-intrusive change which allows a simple default piece of text to exist in the case that the Token Input is empty and unfocused. It is akin to the default text often utilized in websites for input tags, e.g. a light grey "First Name Here..." on an input asking for somebody's first name.