git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 6105422ced7968c6a85dc3cd7411c0189d797245

add placeholder text to input fields

Ev Bogue committed on 9/8/2016, 3:54:10 AM
Parent: e53c1ccad7caf5d152bfe83f553b6f898582aca9

Files changed

modules/compose.jschanged
modules/search-box.jschanged
modules/compose.jsView
@@ -22,9 +22,9 @@
2222 sbot = prepublish, prepublish = id
2323 var accessories
2424 meta = meta || {}
2525 if(!meta.type) throw new Error('message must have type')
26- var ta = h('textarea')
26 + var ta = h('textarea', {placeholder: 'Write a message'})
2727
2828 var blur
2929 ta.addEventListener('focus', function () {
3030 clearTimeout(blur)
modules/search-box.jsView
@@ -14,8 +14,9 @@
1414
1515 var suggestBox
1616 var search = h('input.searchprompt', {
1717 type: 'search',
18 + placeholder: '?word, @key, #channel',
1819 onkeydown: function (ev) {
1920 switch (ev.keyCode) {
2021 case 13: // enter
2122 if (suggestBox && suggestBox.active) {

Built with git-ssb-web