Use window's jQuery to make it work

This commit is contained in:
Nathan Gray
2012-03-12 17:26:33 +00:00
parent 3287ac7286
commit da10c03762

View File

@ -60,7 +60,7 @@ egw.extend('calendar', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
} }
// Get the preferences // Get the preferences
$j(_input).datepicker(params); _wnd.$j(_input).datepicker(params);
/* /*
onClose: function(date_text, picker) { onClose: function(date_text, picker) {
// Only update if there's a change - "" if no date selected // Only update if there's a change - "" if no date selected
@ -102,7 +102,7 @@ egw.extend('calendar', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
var full = []; var full = [];
for(var i in translate_fields) for(var i in translate_fields)
{ {
var trans = jQuery.datepicker._defaults[i]; var trans = _wnd.jQuery.datepicker._defaults[i];
if(typeof trans === 'string') if(typeof trans === 'string')
{ {
trans = egw().lang(trans); trans = egw().lang(trans);
@ -134,7 +134,7 @@ egw.extend('calendar', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
} }
*/ */
jQuery.datepicker.setDefaults(regional); _wnd.jQuery.datepicker.setDefaults(regional);
}; };
/** /**