diff options
author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-05-20 18:49:52 +0300 |
---|---|---|
committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-05-20 18:49:52 +0300 |
commit | c25c17adb7b97956d96d61a11474728732e43604 (patch) | |
tree | 5bac30831f1e3485b18ec8a19bca04f644ffc25e /phpBB | |
parent | a1993bc0745db8b904bd8c851b2f410ca0cd42d0 (diff) | |
download | forums-c25c17adb7b97956d96d61a11474728732e43604.tar forums-c25c17adb7b97956d96d61a11474728732e43604.tar.gz forums-c25c17adb7b97956d96d61a11474728732e43604.tar.bz2 forums-c25c17adb7b97956d96d61a11474728732e43604.tar.xz forums-c25c17adb7b97956d96d61a11474728732e43604.zip |
[feature/editor-code-tabs] Adjust code style to match guidelines
PHPBB3-11557
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/styles/prosilver/template/editor.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js index 4975c8e5a0..fd4c68adfe 100644 --- a/phpBB/styles/prosilver/template/editor.js +++ b/phpBB/styles/prosilver/template/editor.js @@ -433,16 +433,14 @@ function getCaretPosition(txtarea) { for (i = 0; i < startTags.length; i++) { var tagLength = startTags[i].length; - if (start >= tagLength) - { + if (start >= tagLength) { index = value.lastIndexOf(startTags[i], start - tagLength); lastStart = Math.max(lastStart, index); } } if (lastStart == -1) return false; - if (start > 0) - { + if (start > 0) { for (i = 0; i < endTags.length; i++) { index = value.lastIndexOf(endTags[i], start - 1); lastEnd = Math.max(lastEnd, index); |