aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/admin.js
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-05-31 10:52:26 -0700
committerCesar G <prototech91@gmail.com>2014-05-31 10:56:08 -0700
commit6a00ff3fa666aad8a52f3f2cb5197e32a825f61e (patch)
tree51725dc6cbb5222cc10840f78a49ca875233051a /phpBB/adm/style/admin.js
parent9c2687ddc9ba7071f7c98c118203f96a412e3d1b (diff)
downloadforums-6a00ff3fa666aad8a52f3f2cb5197e32a825f61e.tar
forums-6a00ff3fa666aad8a52f3f2cb5197e32a825f61e.tar.gz
forums-6a00ff3fa666aad8a52f3f2cb5197e32a825f61e.tar.bz2
forums-6a00ff3fa666aad8a52f3f2cb5197e32a825f61e.tar.xz
forums-6a00ff3fa666aad8a52f3f2cb5197e32a825f61e.zip
[ticket/12641] Use jQuery's trim() method. IE8 does not support the native one
PHPBB3-12641
Diffstat (limited to 'phpBB/adm/style/admin.js')
-rw-r--r--phpBB/adm/style/admin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js
index 7bda86e1e3..a839e7e0e2 100644
--- a/phpBB/adm/style/admin.js
+++ b/phpBB/adm/style/admin.js
@@ -75,7 +75,7 @@ function parse_document(container)
var cell = $(this),
colspan = parseInt(cell.attr('colspan')),
dfn = cell.attr('data-dfn'),
- text = dfn ? dfn : cell.text().trim();
+ text = dfn ? dfn : $.trim(cell.text());
if (text == '&nbsp;') text = '';
colspan = isNaN(colspan) || colspan < 1 ? 1 : colspan;
@@ -114,7 +114,7 @@ function parse_document(container)
cells.each(function() {
var cell = $(this),
colspan = parseInt(cell.attr('colspan')),
- text = cell.text().trim();
+ text = $.trim(cell.text());
if (headersLength <= column) {
return;