This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Damon Aw a5e576adca UX Improvement: Autofocus the topic field on edit
- After clicking on the pencil icon to edit a topic, the focus is not set on the input.
- This leads to cases where using keyboard shorcuts (e.g. cmd + left) leads to navigation instead.
- Searching around online, it seems the cleanest way to add a text-field that autofocuses is to create a component.
- I followed the [cookbook](http://emberjs.com/guides/cookbook/user_interface_and_interaction/focusing_a_textfield_after_its_been_inserted/) and did the most naive implementation.
- This focuses the text-field but at the start of the input. Setting selectionStart and selectionEnd solves this problem, but does not work on IE 8 and below.
2014-10-14 23:31:01 -04:00
..
components UX Improvement: Autofocus the topic field on edit 2014-10-14 23:31:01 -04:00
controllers FEATURE: ability to hide or show specific post revisions 2014-10-14 07:19:45 -07:00
dialects FIX: BBCode was trimming leading space in [code] blocks 2014-10-10 15:11:30 -04:00
ember FEATURE: Admin interface for adding custom fields for users 2014-09-25 16:17:51 -04:00
helpers Instead of .js.handlebars use .hbs for handlebars templates 2014-09-26 15:23:15 -04:00
initializers A mucher saner API for updating the title of routes, even when nested. 2014-10-09 14:55:29 -04:00
lib Support /group/xyz paths as well as /groups/xyz 2014-10-14 15:11:22 -04:00
mixins FEATURE: hide emails behind a button for staff members 2014-09-29 22:31:05 +02:00
models FEATURE: ability to hide or show specific post revisions 2014-10-14 07:19:45 -07:00
routes Support /group/xyz paths as well as /groups/xyz 2014-10-14 15:11:22 -04:00
templates UX Improvement: Autofocus the topic field on edit 2014-10-14 23:31:01 -04:00
views JavaScript does love its commas 2014-10-13 21:27:32 -07:00