Only add .modal-active when modal actually appears (as div.pat-modal)
Only add .modal-active when modal actually appears (as div.pat-modal)

refs #419

janga1997/Patterns,janga1997/Patterns,janga1997/Patterns