Make a little change to the EmptyTableHandler API
authorMatthias Schmidt <gravatronics@live.com>
Mon, 19 Mar 2012 12:53:31 +0000 (13:53 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 19 Mar 2012 12:53:31 +0000 (13:53 +0100)
Additionally, the default message type is info instead of warning.

wcfsetup/install/files/js/WCF.js

index 6c124d0148c8b2b5570b52b09c6828669100dcc4..3ffa2e72900261d3340455f895374c9b802da938 100644 (file)
@@ -3418,17 +3418,17 @@ WCF.Table.EmptyTableHandler = Class.extend({
        /**
         * Initalizes a new WCF.Table.EmptyTableHandler object.
         * 
-        * @param       string          rowClassName
         * @param       jQuery          tableContainer
+        * @param       string          rowClassName
         * @param       object          options
         */
-       init: function(rowClassName, tableContainer, options) {
+       init: function(tableContainer, rowClassName, options) {
                this._rowClassName = rowClassName;
                this._tableContainer = tableContainer;
                
                this._options = $.extend(true, {
                        emptyMessage: null,
-                       messageType: 'wcf-warning',
+                       messageType: 'wcf-info',
                        refreshPage: false,
                        updatePageNumber: false
                }, options || { });