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 — Fix #3126 · fengwit/bootstrap-table@1aed582

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
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,13 +2557,15 @@
25572557
}
25582558

25592559
this.columns[this.fieldsColumnsIndex[params.field]].title = this.options.escape
2560-
? escapeHTML(params.field)
2561-
: params.field;
2560+
? escapeHTML(params.title)
2561+
: params.title;
25622562

25632563
if (this.columns[this.fieldsColumnsIndex[params.field]].visible) {
2564-
this.$header.find('th[data-field]').each(function (i) {
2564+
var header = this.options.height !== undefined ? this.$tableHeader : this.$header;
2565+
header.find('th[data-field]').each(function (i) {
25652566
if ($(this).data('field') === params.field) {
2566-
$($(this).find(".th-inner")[0]).text(params.title);
2567+
$($(this).find(".th-inner")[0]).text(params.title);
2568+
return false;
25672569
}
25682570
});
25692571
}

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.