From c25c17adb7b97956d96d61a11474728732e43604 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Mon, 20 May 2013 18:49:52 +0300 Subject: [PATCH] [feature/editor-code-tabs] Adjust code style to match guidelines PHPBB3-11557 --- phpBB/styles/prosilver/template/editor.js | 6 ++---- 1 file 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);