after selecting the second date on a range datepicker color the range

This is because the popup datepicker's default behaviour is to hide, so the user does not get the idea of a range being selected.

what this does is color the range and after that hide the popup.

(thanks for the great plugin man!)