From: Matthias Schmidt Date: Sat, 8 Jun 2019 13:36:14 +0000 (+0200) Subject: Add html message support for `WCF.Table.EmptyTableHandler` X-Git-Tag: 5.2.0_Alpha_1~19^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09641f3df783c65da6b306854428a3c4b832a897;p=GitHub%2FWoltLab%2FWCF.git Add html message support for `WCF.Table.EmptyTableHandler` --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index af23e8e9de..21703dd71a 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3961,6 +3961,7 @@ WCF.Table.EmptyTableHandler = Class.extend({ this._options = $.extend(true, { emptyMessage: null, + emptyMessageHtml: null, messageType: 'info', refreshPage: false, updatePageNumber: false, @@ -3987,6 +3988,10 @@ WCF.Table.EmptyTableHandler = Class.extend({ // insert message this._tableContainer.replaceWith($('

').addClass(this._options.messageType).text(this._options.emptyMessage)); } + else if (this._options.emptyMessageHtml) { + // insert message + this._tableContainer.replaceWith($('

').addClass(this._options.messageType).html(this._options.emptyMessageHtml)); + } else if (this._options.refreshPage) { // refresh page if (this._options.updatePageNumber) {