mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-25 00:03:27 +08:00
(fix) Range and Type errors after clearing search box [SCI-9867] (#6877)
This commit is contained in:
parent
0a70d70c7f
commit
7ab9c4f935
1 changed files with 4 additions and 6 deletions
|
@ -117,9 +117,8 @@
|
|||
fnReset: function() {
|
||||
let self = this;
|
||||
this._fnGetAllColumns().forEach(function(column) {
|
||||
if (column.sWidth == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof column.sWidth !== 'string' || column.sWidth === null) return;
|
||||
|
||||
let widthResult = column.sWidth.match(/(\d+)/i),
|
||||
oldWidth = widthResult != null ? parseInt(widthResult[0]) : 0,
|
||||
|
@ -149,9 +148,8 @@
|
|||
self.s.state.originalTableWidth = this._fnGetTable().width();
|
||||
|
||||
cols.forEach(function (column) {
|
||||
if (column.sWidth == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof column.sWidth !== 'string' || column.sWidth === null) return;
|
||||
|
||||
let widthResult = column.sWidth.match(/(\d+)/i),
|
||||
oldWidth = widthResult != null ? parseInt(widthResult[0]) : 0,
|
||||
|
|
Loading…
Reference in a new issue