Commit 6105422ced7968c6a85dc3cd7411c0189d797245
add placeholder text to input fields
Ev Bogue committed on 9/8/2016, 3:54:10 AMParent: e53c1ccad7caf5d152bfe83f553b6f898582aca9
Files changed
modules/compose.js | changed |
modules/search-box.js | changed |
modules/compose.js | ||
---|---|---|
@@ -22,9 +22,9 @@ | ||
22 | 22 … | sbot = prepublish, prepublish = id |
23 | 23 … | var accessories |
24 | 24 … | meta = meta || {} |
25 | 25 … | if(!meta.type) throw new Error('message must have type') |
26 | - var ta = h('textarea') | |
26 … | + var ta = h('textarea', {placeholder: 'Write a message'}) | |
27 | 27 … | |
28 | 28 … | var blur |
29 | 29 … | ta.addEventListener('focus', function () { |
30 | 30 … | clearTimeout(blur) |
modules/search-box.js | ||
---|---|---|
@@ -14,8 +14,9 @@ | ||
14 | 14 … | |
15 | 15 … | var suggestBox |
16 | 16 … | var search = h('input.searchprompt', { |
17 | 17 … | type: 'search', |
18 … | + placeholder: '?word, @key, #channel', | |
18 | 19 … | onkeydown: function (ev) { |
19 | 20 … | switch (ev.keyCode) { |
20 | 21 … | case 13: // enter |
21 | 22 … | if (suggestBox && suggestBox.active) { |
Built with git-ssb-web