Skip to content

Added readOnly option#167

Open
jjwilliams wants to merge 2 commits into
max-favilli:masterfrom
jjwilliams:master
Open

Added readOnly option#167
jjwilliams wants to merge 2 commits into
max-favilli:masterfrom
jjwilliams:master

Conversation

@jjwilliams

Copy link
Copy Markdown

This will make the input box readonly, and remove the tagCloseIcon from being rendered.

Fairly simple - I might be missing something. Wasn't sure if I should .attr('readonly', true) the field or disable the field. Readonly will still get posted, although I'm not sure why a tagManager's textbox would need to be posted back.

@jjwilliams

Copy link
Copy Markdown
Author

Also I don't know if this is needed:
opts.backspace = [];//clear out the ability to delete on backspace chars
I guess I have visions of rogue browsers allowing users to type into readonly fields.

@johnnyshields

Copy link
Copy Markdown
Collaborator

Why show the input box at all if in read only mode?

@jjwilliams42

Copy link
Copy Markdown

Good point, I could just hide it altogether. I'll look into that tomorrow.

@jjwilliams

Copy link
Copy Markdown
Author

Hid the textbox if readOnly

@hposkanzer hposkanzer mentioned this pull request Apr 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants