Skip to content

Commit

Permalink
Fix dateRangePicker to use provided language for value
Browse files Browse the repository at this point in the history
This fix intents to correct issue longbill#193 by following suggestion on issue longbill#282
  • Loading branch information
vonBarbarosa authored Apr 30, 2018
1 parent e7566c7 commit c9b5f50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jquery.daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@
};

$.fn.dateRangePicker = function(opt) {
moment.locale(opt.language);
if (!opt) opt = {};
opt = $.extend(true, {
autoClose: false,
Expand Down Expand Up @@ -2586,4 +2587,4 @@
}

};
}));
}));

0 comments on commit c9b5f50

Please sign in to comment.