Commit 12fb5df1 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1512181: cleaning out the old text from textarea"

parents 568062c4 1c7c1a3b
......@@ -970,6 +970,10 @@ function compositeSaveCallback(form, data) {
\$j('#' + form.id + ' input:text, #' + form.id + ' textarea').each(function() {
\$j(this).attr('value', '');
});
// Also need to clear the innerHTML for textareas
\$j('#' + form.id + ' textarea').each(function() {
document.getElementById(\$j(this).attr('id')).innerHTML = '';
});
\$j('#' + key + 'form').collapse('hide');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment