pusher-community / pusher-realtime-chat-widget

Example Realtime Chat Widget that can be added to any web page or app.
97 stars 87 forks source link

Chat textarea not properly marked as readonly #2

Closed freb closed 10 years ago

freb commented 12 years ago

on line 119 in PusherChatWidget.js, the code reads: this._messageInputEl.attr('readonly');

This only fetches the value of the 'readonly' attribute. In order to set that readonly attribute that will later be removed on line 151, you need to use the following:

this._messageInputEl.attr('readonly', true);