maxlength="255" on commit comment textarea

Per API 0.6 limit. Fixes #2410.
This commit is contained in:
Minh Nguyễn
2014-10-19 15:52:43 -07:00
parent 7fc4d45444
commit 8b896b8b84
+1
View File
@@ -41,6 +41,7 @@ iD.ui.Commit = function(context) {
var commentField = commentSection.append('textarea')
.attr('placeholder', t('commit.description_placeholder'))
.attr('maxlength', 255)
.property('value', context.storage('comment') || '')
.on('blur.save', function () {
context.storage('comment', this.value);