this.wutil.setOption('autosave', false);
// disable autosave on destroy
- var $mpDestroy = this.destroy;
- var self = this;
- this.destroy = function() {
- self.autosaveDisable();
- $mpDestroy.call(self);
- };
+ var $mpDestroy = this.core.destroy;
+ this.core.destroy = (function() {
+ this.wutil.autosaveDisable();
+
+ $mpDestroy.call(this);
+ }).bind(this);
},
/**
* Disables automatic saving.
*/
autosaveDisable: function() {
- if (!this.getOption('woltlab.autosave').active) {
+ if (!this.wutil.getOption('woltlab.autosave').active) {
return false;
}
});
if (!$image.parents('a').length) {
- $image.wrap('<a href="' + $image.attr('src') + '" />');
- $image.parent().slimbox();
+ $image.wrap('<a href="' + $image.attr('src') + '" class="jsImageViewerEnabled" />');
+ $image.parent().click($.proxy(this._click, this));
}
}
}
var $message = '';
if ($.browser.redactor) {
- $message = $('#' + this._messageEditorIDPrefix + $objectID).redactor('getText');
+ $message = $('#' + this._messageEditorIDPrefix + $objectID).redactor('wutil.getText');
}
else {
$message = $('#' + this._messageEditorIDPrefix + $objectID).val();
var $message = '';
if ($.browser.redactor) {
- $message = $('#' + this._messageEditorIDPrefix + $objectID).redactor('getText');
+ $message = $('#' + this._messageEditorIDPrefix + $objectID).redactor('wutil.getText');
}
else {
$message = $('#' + this._messageEditorIDPrefix + $objectID).val();
// destroy editor
if ($.browser.redactor) {
var $target = $('#' + this._messageEditorIDPrefix + $container.data('objectID'));
- $target.redactor('autosavePurge');
- $target.redactor('destroy');
+ $target.redactor('wutil.autosavePurge');
+ $target.redactor('core.destroy');
}
// purge DOM elements
*/
formatNumeric: function(number, decimalPlaces) {
number = String(WCF.Number.round(number, decimalPlaces || 2));
- numberParts = number.split('.');
+ var numberParts = number.split('.');
number = this.addThousandsSeparator(numberParts[0]);
if (numberParts.length > 1) number += WCF.Language.get('wcf.global.decimalPoint') + numberParts[1];
list-style-type: decimal;
}
+ img {
+ max-width: 100%;
+ }
+
table {
border-collapse: collapse;
font-size: 14px;