Fix #1686 : Fix jquery ui usage
Merge pull request #938 from romainneutron/fix-1686

[3.8] Fix #1686 : Fix jquery ui usage