Fixees #6496 by refactoring code in edit_contentlet.js
Merge pull request #6508 from dotCMS/issue-6496-js-included

Fixees #6496 by refactoring code in edit_contentlet.js