Fixes #3162 : improve javascript for directive modified diff
Merge pull request #69 from VinceMacBuche/bug_3162/fix_directive_diff

Fixes #3162 : improve javascript for directive modified diff