From b50cff056a2b0f423a28828e2b6aa24f46aef556 Mon Sep 17 00:00:00 2001 From: Mattias Cibien Date: Tue, 23 Sep 2014 17:46:03 +0200 Subject: [PATCH] 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. --- core/client/validators/post.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/client/validators/post.js b/core/client/validators/post.js index 8e64bb7819..441eb6ba51 100644 --- a/core/client/validators/post.js +++ b/core/client/validators/post.js @@ -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.' }); }