benlau / gogogohk

Automatically exported from code.google.com/p/gogogohk
0 stars 0 forks source link

/planning - The start and end address input fields should set default value to "From" & "To" respectively #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The start and end address input fields should set default value to "From" &
"To" respectively. Whatever the user pressed the input field , the initial
text should be removed and restore the color to normal. 

Original issue reported on code.google.com by xben...@gmail.com on 21 Aug 2009 at 6:39

GoogleCodeExporter commented 9 years ago

Original comment by xben...@gmail.com on 23 Aug 2009 at 6:16

GoogleCodeExporter commented 9 years ago
- directly modify the template 
- make use of jquery.blur and jquery.focus handlers
- plus some css tweaks

Original comment by mr.ksc...@gmail.com on 26 Aug 2009 at 8:56

GoogleCodeExporter commented 9 years ago
In /gogogo-hk/gogogo/templates/gogogo/planning.html

- added css block and css class for empty input
- extended js block to show from/to when empty input 

In the same patch,
- modified part of js block to support i18n messages

see 
http://github.com/gogogo/gogogo-hk/tree/413a9cc855457a01acb695324b0e843c9a60bcac

Original comment by mr.ksc...@gmail.com on 26 Aug 2009 at 11:07