mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12641] Use jQuery's trim() method. IE8 does not support the native one
PHPBB3-12641
This commit is contained in:
parent
9c2687ddc9
commit
6a00ff3fa6
2 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ function parse_document(container)
|
||||||
var cell = $(this),
|
var cell = $(this),
|
||||||
colspan = parseInt(cell.attr('colspan')),
|
colspan = parseInt(cell.attr('colspan')),
|
||||||
dfn = cell.attr('data-dfn'),
|
dfn = cell.attr('data-dfn'),
|
||||||
text = dfn ? dfn : cell.text().trim();
|
text = dfn ? dfn : $.trim(cell.text());
|
||||||
|
|
||||||
if (text == ' ') text = '';
|
if (text == ' ') text = '';
|
||||||
colspan = isNaN(colspan) || colspan < 1 ? 1 : colspan;
|
colspan = isNaN(colspan) || colspan < 1 ? 1 : colspan;
|
||||||
|
@ -114,7 +114,7 @@ function parse_document(container)
|
||||||
cells.each(function() {
|
cells.each(function() {
|
||||||
var cell = $(this),
|
var cell = $(this),
|
||||||
colspan = parseInt(cell.attr('colspan')),
|
colspan = parseInt(cell.attr('colspan')),
|
||||||
text = cell.text().trim();
|
text = $.trim(cell.text());
|
||||||
|
|
||||||
if (headersLength <= column) {
|
if (headersLength <= column) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -517,7 +517,7 @@ function parse_document(container)
|
||||||
block = $this.find('dt .responsive-show:last-child');
|
block = $this.find('dt .responsive-show:last-child');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
first = (block.text().trim().length == 0);
|
first = ($.trim(block.text()).length == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy contents of each column
|
// Copy contents of each column
|
||||||
|
@ -570,7 +570,7 @@ function parse_document(container)
|
||||||
block = $this.find('dt .responsive-show:last-child');
|
block = $this.find('dt .responsive-show:last-child');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
first = (block.text().trim().length == 0);
|
first = ($.trim(block.text()).length == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy contents of each column
|
// Copy contents of each column
|
||||||
|
@ -648,7 +648,7 @@ function parse_document(container)
|
||||||
cells.each(function() {
|
cells.each(function() {
|
||||||
var cell = $(this),
|
var cell = $(this),
|
||||||
colspan = parseInt(cell.attr('colspan')),
|
colspan = parseInt(cell.attr('colspan')),
|
||||||
text = cell.text().trim();
|
text = $.trim(cell.text());
|
||||||
|
|
||||||
if (headersLength <= column) {
|
if (headersLength <= column) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue