View | Details | Raw Unified | Return to bug 5140
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/lib/calendar/calendar.js (-5 / +5 lines)
Lines 1200-1206 Calendar.prototype.callCloseHandler = function () { Link Here
1200
	if (this.onClose) {
1200
	if (this.onClose) {
1201
		this.onClose(this);
1201
		this.onClose(this);
1202
	}
1202
	}
1203
	this.hideShowCovered();
1203
	// this.hideShowCovered();
1204
};
1204
};
1205
1205
1206
/** Removes the calendar object from the DOM tree and destroys it. */
1206
/** Removes the calendar object from the DOM tree and destroys it. */
Lines 1258-1264 Calendar.prototype.show = function () { Link Here
1258
		Calendar.addEvent(document, "keypress", Calendar._keyEvent);
1258
		Calendar.addEvent(document, "keypress", Calendar._keyEvent);
1259
		Calendar.addEvent(document, "mousedown", Calendar._checkCalendar);
1259
		Calendar.addEvent(document, "mousedown", Calendar._checkCalendar);
1260
	}
1260
	}
1261
	this.hideShowCovered();
1261
	// this.hideShowCovered();
1262
};
1262
};
1263
1263
1264
/**
1264
/**
Lines 1273-1279 Calendar.prototype.hide = function () { Link Here
1273
	}
1273
	}
1274
	this.element.style.display = "none";
1274
	this.element.style.display = "none";
1275
	this.hidden = true;
1275
	this.hidden = true;
1276
	this.hideShowCovered();
1276
	// this.hideShowCovered();
1277
};
1277
};
1278
1278
1279
/**
1279
/**
Lines 1463-1469 Calendar.prototype.parseDate = function (str, fmt) { Link Here
1463
	}
1463
	}
1464
};
1464
};
1465
1465
1466
Calendar.prototype.hideShowCovered = function () {
1466
/* Calendar.prototype.hideShowCovered = function () {
1467
	var self = this;
1467
	var self = this;
1468
	Calendar.continuation_for_the_fucking_khtml_browser = function() {
1468
	Calendar.continuation_for_the_fucking_khtml_browser = function() {
1469
		function getVisib(obj){
1469
		function getVisib(obj){
Lines 1523-1529 Calendar.prototype.hideShowCovered = function () { Link Here
1523
		setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()", 10);
1523
		setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()", 10);
1524
	else
1524
	else
1525
		Calendar.continuation_for_the_fucking_khtml_browser();
1525
		Calendar.continuation_for_the_fucking_khtml_browser();
1526
};
1526
}; */
1527
1527
1528
/** Internal function; it displays the bar with the names of the weekday. */
1528
/** Internal function; it displays the bar with the names of the weekday. */
1529
Calendar.prototype._displayWeekdays = function () {
1529
Calendar.prototype._displayWeekdays = function () {
(-)a/koha-tmpl/opac-tmpl/prog/en/lib/calendar/calendar.js (-8 / +7 lines)
Lines 472-478 Calendar.calDragIt = function (ev) { Link Here
472
		posX = ev.pageX;
472
		posX = ev.pageX;
473
		posY = ev.pageY;
473
		posY = ev.pageY;
474
	}
474
	}
475
	cal.hideShowCovered();
475
	// cal.hideShowCovered();
476
	var st = cal.element.style;
476
	var st = cal.element.style;
477
	st.left = (posX - cal.xOffs) + "px";
477
	st.left = (posX - cal.xOffs) + "px";
478
	st.top = (posY - cal.yOffs) + "px";
478
	st.top = (posY - cal.yOffs) + "px";
Lines 490-496 Calendar.calDragEnd = function (ev) { Link Here
490
		removeEvent(document, "mouseup", calDragEnd);
490
		removeEvent(document, "mouseup", calDragEnd);
491
		tableMouseUp(ev);
491
		tableMouseUp(ev);
492
	}
492
	}
493
	cal.hideShowCovered();
493
	// cal.hideShowCovered();
494
};
494
};
495
495
496
Calendar.dayMouseDown = function(ev) {
496
Calendar.dayMouseDown = function(ev) {
Lines 1200-1206 Calendar.prototype.callCloseHandler = function () { Link Here
1200
	if (this.onClose) {
1200
	if (this.onClose) {
1201
		this.onClose(this);
1201
		this.onClose(this);
1202
	}
1202
	}
1203
	this.hideShowCovered();
1203
	// this.hideShowCovered();
1204
};
1204
};
1205
1205
1206
/** Removes the calendar object from the DOM tree and destroys it. */
1206
/** Removes the calendar object from the DOM tree and destroys it. */
Lines 1258-1264 Calendar.prototype.show = function () { Link Here
1258
		Calendar.addEvent(document, "keypress", Calendar._keyEvent);
1258
		Calendar.addEvent(document, "keypress", Calendar._keyEvent);
1259
		Calendar.addEvent(document, "mousedown", Calendar._checkCalendar);
1259
		Calendar.addEvent(document, "mousedown", Calendar._checkCalendar);
1260
	}
1260
	}
1261
	this.hideShowCovered();
1261
	// this.hideShowCovered();
1262
};
1262
};
1263
1263
1264
/**
1264
/**
Lines 1273-1279 Calendar.prototype.hide = function () { Link Here
1273
	}
1273
	}
1274
	this.element.style.display = "none";
1274
	this.element.style.display = "none";
1275
	this.hidden = true;
1275
	this.hidden = true;
1276
	this.hideShowCovered();
1276
	// this.hideShowCovered();
1277
};
1277
};
1278
1278
1279
/**
1279
/**
Lines 1463-1469 Calendar.prototype.parseDate = function (str, fmt) { Link Here
1463
	}
1463
	}
1464
};
1464
};
1465
1465
1466
Calendar.prototype.hideShowCovered = function () {
1466
/* Calendar.prototype.hideShowCovered = function () {
1467
	var self = this;
1467
	var self = this;
1468
	Calendar.continuation_for_the_fucking_khtml_browser = function() {
1468
	Calendar.continuation_for_the_fucking_khtml_browser = function() {
1469
		function getVisib(obj){
1469
		function getVisib(obj){
Lines 1523-1529 Calendar.prototype.hideShowCovered = function () { Link Here
1523
		setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()", 10);
1523
		setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()", 10);
1524
	else
1524
	else
1525
		Calendar.continuation_for_the_fucking_khtml_browser();
1525
		Calendar.continuation_for_the_fucking_khtml_browser();
1526
};
1526
}; */
1527
1527
1528
/** Internal function; it displays the bar with the names of the weekday. */
1528
/** Internal function; it displays the bar with the names of the weekday. */
1529
Calendar.prototype._displayWeekdays = function () {
1529
Calendar.prototype._displayWeekdays = function () {
1530
- 

Return to bug 5140