innoq / statuses

statuses
Apache License 2.0
13 stars 14 forks source link

"too long" error should restore original message #90

Open FND opened 9 years ago

FND commented 9 years ago

when entering a message with >140 characters, all you get is

Sorry, the maximum lenght is 140 but you tried ____ characters

... with no obvious way to recover the offending message (i.e. hoping the browser will have remembered when hitting back, which isn't always the case)

instead, the input field should be restored with the original message so the user can tweak it

aheusingfeld commented 9 years ago

Huh? How did you accomplish this? Actually posting should be disabled when the text is too long! If it's not, that's a bug

stilkov commented 9 years ago

Disable JavaScript :-)

FND commented 9 years ago

actually, I didn't disable JavaScript (kinda tricky on an iPad): the character counter/check is missing from individual statuses (i.e. /updates/123) - I thought that issue had been discussed before, but I guess not?

aheusingfeld commented 9 years ago

nope! Please do.

FND commented 9 years ago

-> #91 (91! @stilkov must have written some pretty buggy popular software there... )

mvitz commented 9 years ago

One solution maybe rendering the updates page again with a warning and restoring the input. However this would make the too-long page superfluous. I don't know how REST/Roca this solution is. Additional input welcome.