}
else if (document.selection && document.selection.type != "Control") { // IE
var $range = document.selection.createRange();
- // TODO: Check coordinates if they're relative too!
+
$coordinates = {
left: $range.boundingLeft,
right: $range.boundingRight,
this._dialog.find('input.jsCheckbox').change($.proxy(this._changeButtons, this));
// mark quotes for removal
- // TODO: is this still supported?
if (this._removeOnSubmit.length) {
var self = this;
this._dialog.find('input.jsRemoveQuote').each(function(index, input) {
// do the actual replacement
// this is not perfect, but a basic implementation and should work in 99% of the cases
- // TODO: support literals (magics are escaped in PHP date() by an \, in jQuery UI DatePicker they are enclosed in '')
this._dateFormat = WCF.Language.get('wcf.date.dateFormat').replace(/([^dDjlzSFmMnoYyU\\]*(?:\\.[^dDjlzSFmMnoYyU\\]*)*)([dDjlzSFmMnoYyU])/g, function(match, part1, part2, offset, string) {
for (var $key in $replacementTable) {
if (part2 == $key) {
// close selection and set focus on input element
if (this._didInit) {
- // this._closeSelection(); todo: still needed?
this._element.blur().focus();
}
},