You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
461 B
JavaScript
13 lines
461 B
JavaScript
9 years ago
|
function validateRichText(helpBlock, messageGroup, messageContainer, errorText) {
|
||
|
$('#' + helpBlock).text("");
|
||
|
$('#' + messageGroup).removeClass('has-error');
|
||
|
|
||
|
var content = tinyMCE.get(messageContainer).getContent();
|
||
|
if (content == '') {
|
||
|
$('#' + helpBlock).text(errorText).focus();
|
||
|
$('#' + messageGroup).addClass('has-error');
|
||
|
$('#' + messageGroup).get(0).scrollIntoView();
|
||
|
return false;
|
||
|
}
|
||
|
return true;
|
||
|
}
|