Added inherit field to document dialog
Fixed the problem that jstree was loaded twice