[FIX] Fix multiple clicks on datetime picker icon causes picker to stay overlay forever.

Fixed datetimepicker addon not forwarding 'widget' option to original datepicker

bzr revid: fme@openerp.com-20120515132234-s1axk1b3a1211yh1
This commit is contained in:
Fabien Meghazi
2012-05-15 15:22:34 +02:00
@@ -913,7 +913,7 @@ $.fn.extend({
tmp_args = arguments;
if (typeof(o) == 'string'){
if(o == 'getDate')
if(o == 'getDate' || o == 'widget')
return $.fn.datepicker.apply($(this[0]), tmp_args);
else
return this.each(function() {