aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-05-25 04:47:22 -0700
committerCesar G <prototech91@gmail.com>2014-05-27 07:17:47 -0700
commitdff6741c7b8cff5b1e27bf5288231e0859faf2bd (patch)
tree254e20d55df49f37fa056ea1fde3cb2a0a46af17
parent7c3af55918c32a45062e8014e89c19db2659b189 (diff)
downloadforums-dff6741c7b8cff5b1e27bf5288231e0859faf2bd.tar
forums-dff6741c7b8cff5b1e27bf5288231e0859faf2bd.tar.gz
forums-dff6741c7b8cff5b1e27bf5288231e0859faf2bd.tar.bz2
forums-dff6741c7b8cff5b1e27bf5288231e0859faf2bd.tar.xz
forums-dff6741c7b8cff5b1e27bf5288231e0859faf2bd.zip
[ticket/12155] Fix misplaced semicolon and ensure that value comparison works.
PHPBB3-12155
-rw-r--r--phpBB/styles/prosilver/template/mcp_post.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/mcp_post.html b/phpBB/styles/prosilver/template/mcp_post.html
index d679fd1598..10ec6f3ea9 100644
--- a/phpBB/styles/prosilver/template/mcp_post.html
+++ b/phpBB/styles/prosilver/template/mcp_post.html
@@ -52,7 +52,7 @@
<ul class="post-buttons">
<li id="expand">
- <a href="#post_details" onclick="viewableArea(getElementById('post_details'), true); var rev_text = getElementById('expand').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'}; return false;">
+ <a href="#post_details" onclick="viewableArea(getElementById('post_details'), true); var rev_text = getElementById('expand').getElementsByTagName('a').item(0).firstChild; if (rev_text.data.trim() == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data.trim() == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}';} return false;">
{L_EXPAND_VIEW}
</a>
</li>