0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Incrementing hard limits for Meta title and Meta description

closes #4124
- incremented values for client-side validation for Meta title and Meta description
- changed error messages to display the maximum number of characters.
This commit is contained in:
Mattias Cibien 2014-09-23 17:46:03 +02:00
parent 282807adf0
commit ee38957317

View file

@ -9,15 +9,15 @@ var PostValidator = Ember.Object.create({
});
}
if (!validator.isLength(data.meta_title, 0, 70)) {
if (!validator.isLength(data.meta_title, 0, 150)) {
validationErrors.push({
message: 'Meta Title is too long.'
message: 'Meta Title cannot be longer than 150 characters.'
});
}
if (!validator.isLength(data.meta_description, 0, 156)) {
if (!validator.isLength(data.meta_description, 0, 200)) {
validationErrors.push({
message: 'Meta Description is too long.'
message: 'Meta Description cannot be longer than 200 characters.'
});
}