Merge pull request #2411 from 1ec5/max-comment

maxlength="255" on commit comment textarea
This commit is contained in:
Bryan Housel
2014-10-20 09:58:47 -04:00
+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);