Update js/bootstrap-datetimepicker.js

only fire hide event if the datetimepicker is visible