Changes between Version 2 and Version 3 of Ticket #6228, comment 4


Ignore:
Timestamp:
Mar 2, 2012, 4:31:14 AM (11 years ago)
Author:
rdworth
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6228, comment 4

    v2 v3  
    88{{{
    99// Workaround for missing datepickercreate event
    10 var $fndatepicker = $.fn.datepicker;
    11 $.fn.datepicker = function(options) {
    12   $(this).trigger("datepickercreate");
    13   options && options.create && options.create();
    14   return $fndatepicker.apply(this, arguments);
    15 };
     10(function( $ ) {
     11  var $fndatepicker = $.fn.datepicker;
     12  $.fn.datepicker = function( options ) {
     13    $( this ).trigger( "datepickercreate" );
     14    options && options.create && options.create();
     15    return $fndatepicker.apply( this, arguments );
     16  };
     17})( jQuery );
    1618}}}