lovelle / jquery-chat

100% Javascript realtime chat like facebook/gmail web style built with jQuery + Node.js + Socket.IO
http://jquery-chat.net/
MIT License
305 stars 132 forks source link

New feature - allow search button be case sensitive #20

Closed Adnanhmd closed 9 years ago

Adnanhmd commented 9 years ago

Hi

While searching the casing has to be ignored.

lovelle commented 9 years ago

Hi, sorry but I dont understand that, you mean you won't the search be case sensitive?. Please provide more information on what you are attempting to do.

Adnanhmd commented 9 years ago

Hi

Let me be more clear, i have a active user called "Alpha". But in search if i type "alpha" it wont show the result. I have to type exact letters like "Alpha" .

lovelle commented 9 years ago

Hi ok, is what I supposed at the beginning, I think would be good to have this behaviour configurable with some param like "search_case_sensitive = true" in config.js.

Please tell me if this make sense to you.

Adnanhmd commented 9 years ago

Hi That also could be fine. If i use "search_case_sensitive = true" in config file. whether it will work for current version ???

lovelle commented 9 years ago

Not for now, I'm going to take care of this today so I think it could be done quickly because is not too difficult.

lovelle commented 9 years ago

Done, please update the branch master and change the parameter _search_casesensitive to false value like this

search_case_sensitive: false,

in config.js

lovelle commented 9 years ago

merged.

Adnanhmd commented 9 years ago

Thanks appreciated.