GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — reducing complexibility and fix sorter · jb091/bootstrap-table@cf2c425

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • bootstrap-table.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/bootstrap-table.js‎

Copy file name to clipboardExpand all lines: src/bootstrap-table.js
+10-3Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,9 +2392,16 @@
23922392
};
23932393

23942394
BootstrapTable.prototype.getData = function (useCurrentPage) {
2395-
return (this.searchText || !$.isEmptyObject(this.filterColumns) || !$.isEmptyObject(this.filterColumnsPartial)) ?
2396-
(useCurrentPage ? this.data.slice(this.pageFrom - 1, this.pageTo) : this.data) :
2397-
(useCurrentPage ? this.options.data.slice(this.pageFrom - 1, this.pageTo) : this.options.data);
2395+
var data = this.options.data;
2396+
if (this.searchText || this.options.sortName || !$.isEmptyObject(this.filterColumns) || !$.isEmptyObject(this.filterColumnsPartial)) {
2397+
data = this.data;
2398+
}
2399+
2400+
if (useCurrentPage) {
2401+
return data.slice(this.pageFrom - 1, this.pageTo);
2402+
}
2403+
2404+
return data;
23982405
};
23992406

24002407
BootstrapTable.prototype.load = function (data) {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.