|
|
@@ -528,7 +528,7 @@ class BootstrapTable {
|
|
|
<button class="${this.constants.buttonsClass} dropdown-toggle" type="button" data-toggle="dropdown"
|
|
|
aria-label="Columns" title="${o.formatColumns()}">
|
|
|
${o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.columns) : '' }
|
|
|
- ${o.showButtonText ? o.formatColumns() : ''}
|
|
|
+ ${o.showButtonText ? o.formatColumns() : ''}
|
|
|
${this.constants.html.dropdownCaret}
|
|
|
</button>
|
|
|
${this.constants.html.toolbarDropdown[0]}`)
|
|
|
@@ -681,6 +681,10 @@ class BootstrapTable {
|
|
|
$(currentTarget).val(text)
|
|
|
}
|
|
|
|
|
|
+ if (this.searchText === text) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
this.searchText = text
|
|
|
this.options.searchText = text
|
|
|
}
|
|
|
@@ -1952,12 +1956,11 @@ class BootstrapTable {
|
|
|
|
|
|
getSelections () {
|
|
|
// fix #2424: from html with checkbox
|
|
|
- return this.options.data.filter(row =>
|
|
|
- row[this.header.stateField] === true)
|
|
|
+ return this.data.filter(row => row[this.header.stateField] === true)
|
|
|
}
|
|
|
|
|
|
getAllSelections () {
|
|
|
- return this.options.data.filter(row => row[this.header.stateField])
|
|
|
+ return this.options.data.filter(row => row[this.header.stateField] === true)
|
|
|
}
|
|
|
|
|
|
load (_data) {
|