fix datepicker noconflict

This commit is contained in:
vitalets
2013-06-23 18:03:37 +04:00
parent 9136f8d34a
commit b1e96ef177
2 changed files with 9 additions and 4 deletions

View File

@@ -958,7 +958,7 @@
}
var old = $.fn.datepicker;
$.fn.datepicker = function ( option ) {
var datepicker = $.fn.datepicker = function ( option ) {
var args = Array.apply(null, arguments);
args.shift();
var internal_return,
@@ -1242,11 +1242,13 @@
if ($this.data('datepicker')) return;
e.preventDefault();
// component click requires us to explicitly show it
$this.datepicker('show');
datepicker.call($this, 'show');
}
);
$(function(){
$('[data-provide="datepicker-inline"]').datepicker();
//$('[data-provide="datepicker-inline"]').datepicker();
//vit: changed to support noConflict()
datepicker.call($('[data-provide="datepicker-inline"]'));
});
}( window.jQuery ));