[3.8] Fix #1686 : Fix jquery ui usage