Skip to content

Commit 5b6416d

Browse files
committed
prod
1 parent 48f3a95 commit 5b6416d

File tree

3 files changed

+28
-14
lines changed

3 files changed

+28
-14
lines changed

dist/react-bootstrap-table.js

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,13 +2723,16 @@ return /******/ (function(modules) { // webpackBootstrap
27232723
}, this);
27242724

27252725
if (tableRows.length === 0 && !this.props.withoutNoDataText) {
2726+
var colSpan = this.props.columns.filter(function (c) {
2727+
return !c.hidden;
2728+
}).length + (isSelectRowDefined ? 1 : 0);
27262729
tableRows = [_react2.default.createElement(
27272730
_TableRow2.default,
27282731
{ key: '##table-empty##' },
27292732
_react2.default.createElement(
27302733
'td',
27312734
{ 'data-toggle': 'collapse',
2732-
colSpan: this.props.columns.length + (isSelectRowDefined ? 1 : 0),
2735+
colSpan: colSpan,
27332736
className: 'react-bs-table-no-data' },
27342737
this.props.noDataText || _Const2.default.NO_DATA_TEXT
27352738
)
@@ -3685,6 +3688,10 @@ return /******/ (function(modules) { // webpackBootstrap
36853688
return _this.__handleCustomUpdate__REACT_HOT_LOADER__.apply(_this, arguments);
36863689
};
36873690

3691+
_this.notifyToastr = function () {
3692+
return _this.__notifyToastr__REACT_HOT_LOADER__.apply(_this, arguments);
3693+
};
3694+
36883695
_this.handleClick = function () {
36893696
return _this.__handleClick__REACT_HOT_LOADER__.apply(_this, arguments);
36903697
};
@@ -3762,16 +3769,10 @@ return /******/ (function(modules) { // webpackBootstrap
37623769
var responseType = typeof checkVal === 'undefined' ? 'undefined' : _typeof(checkVal);
37633770
if (responseType !== 'object' && checkVal !== true) {
37643771
valid = false;
3765-
var toastr = this.props.beforeShowError && this.props.beforeShowError('error', checkVal, _Const2.default.CANCEL_TOASTR);
3766-
if (toastr) {
3767-
ts.refs.notifier.notice('error', checkVal, _Const2.default.CANCEL_TOASTR);
3768-
}
3772+
this.notifyToastr('error', checkVal, _Const2.default.CANCEL_TOASTR);
37693773
} else if (responseType === 'object' && checkVal.isValid !== true) {
37703774
valid = false;
3771-
var _toastr = this.props.beforeShowError && this.props.beforeShowError(checkVal.notification.type, checkVal.notification.msg, checkVal.notification.title);
3772-
if (_toastr) {
3773-
ts.refs.notifier.notice(checkVal.notification.type, checkVal.notification.msg, checkVal.notification.title);
3774-
}
3775+
this.notifyToastr(checkVal.notification.type, checkVal.notification.msg, checkVal.notification.title);
37753776
}
37763777
if (!valid) {
37773778
// animate input
@@ -3793,6 +3794,19 @@ return /******/ (function(modules) { // webpackBootstrap
37933794
}
37943795
// END
37953796

3797+
}, {
3798+
key: '__notifyToastr__REACT_HOT_LOADER__',
3799+
value: function __notifyToastr__REACT_HOT_LOADER__(type, message, title) {
3800+
var toastr = true;
3801+
var beforeShowError = this.props.beforeShowError;
3802+
3803+
if (beforeShowError) {
3804+
toastr = beforeShowError(type, message, title);
3805+
}
3806+
if (toastr) {
3807+
this.refs.notifier.notice(type, message, title);
3808+
}
3809+
}
37963810
}, {
37973811
key: 'clearTimeout',
37983812
value: function (_clearTimeout) {

dist/react-bootstrap-table.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)