Closed shokai closed 9 years ago
どうやらページ名頭に @
が付くページで起るらしい
http://gyazz.masuilab.org/osusume/@shokai http://node-gyazz.herokuapp.com/shokai/@hoge
encodeURIは@を変換してくれません。 encodeURIComponentを使いましょう。
https://github.com/masuilab/Gyazz/blob/master/public/javascripts/gyazz_edit.coffee#L1 https://github.com/masuilab/Gyazz/blob/master/public/javascripts/gyazz_socket.coffee#L4
nekobato氏の提案どおり修正しました @5c4b4ff
ページ名が「@」ではじまってるページはタイトルクリックしてもテキスト編集できないのか?
Chromeだと大丈夫だけどFirefoxだと編集できない??
デバッグコンソールを使えばいいのでは jsエラーが出ていればエラーは見えるし、そうでなければDOMがおかしくなっているはずです
jQuery.paramを使えばobjectをまとめてencodeURIComponentできる事に気づいた ので修正しました
jQuery.paramを使うとスペースが%20ではなく+になる事がわかりました 直します
このページでsocket.ioが接続できない また、サーバー側もnodeプロセスが強制終了する http://gyazz.masuilab.org/osusume/@shokai/masuilab%20on%20Twitter