aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-02-25 10:51:35 +0000
committerAndreas Fischer <bantu@phpbb.com>2010-02-25 10:51:35 +0000
commitcdc96b0c7d87b3db7a8192b62ffb95044a24434f (patch)
tree8e41c622e96a580bedd2aea5fa5ae6f888670498 /phpBB/styles
parente57981d1f55932cacfd0d4f11c7a69e5d1195bc4 (diff)
downloadforums-cdc96b0c7d87b3db7a8192b62ffb95044a24434f.tar
forums-cdc96b0c7d87b3db7a8192b62ffb95044a24434f.tar.gz
forums-cdc96b0c7d87b3db7a8192b62ffb95044a24434f.tar.bz2
forums-cdc96b0c7d87b3db7a8192b62ffb95044a24434f.tar.xz
forums-cdc96b0c7d87b3db7a8192b62ffb95044a24434f.zip
Bug #58085 - Add terminating semicolons to JavaScript code found by JSLint. Patch by nn-
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10539 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles')
-rw-r--r--phpBB/styles/prosilver/template/editor.js10
-rw-r--r--phpBB/styles/subsilver2/template/editor.js4
2 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js
index 98dab5d7c8..9c2691db8d 100644
--- a/phpBB/styles/prosilver/template/editor.js
+++ b/phpBB/styles/prosilver/template/editor.js
@@ -157,7 +157,7 @@ function insert_text(text, spaces, popup)
var sel_start = textarea.selectionStart;
var sel_end = textarea.selectionEnd;
- mozWrap(textarea, text, '')
+ mozWrap(textarea, text, '');
textarea.selectionStart = sel_start + text.length;
textarea.selectionEnd = sel_end + text.length;
}
@@ -259,7 +259,7 @@ function addquote(post_id, username)
var lines = split_lines(theSelection);
for (i = 0; i < lines.length; i++)
{
- insert_text('> ' + lines[i] + '\n')
+ insert_text('> ' + lines[i] + '\n');
}
}
}
@@ -289,7 +289,7 @@ function split_lines(text)
if (splitAt == -1)
{
splitLines[j] = line;
- j++
+ j++;
}
else
{
@@ -298,7 +298,7 @@ function split_lines(text)
j++;
}
}
- while(splitAt != -1)
+ while(splitAt != -1);
}
}
return splitLines;
@@ -319,7 +319,7 @@ function mozWrap(txtarea, open, close)
}
var s1 = (txtarea.value).substring(0,selStart);
- var s2 = (txtarea.value).substring(selStart, selEnd)
+ var s2 = (txtarea.value).substring(selStart, selEnd);
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + open + s2 + close + s3;
diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js
index 0c48c93ad3..2d157caada 100644
--- a/phpBB/styles/subsilver2/template/editor.js
+++ b/phpBB/styles/subsilver2/template/editor.js
@@ -156,7 +156,7 @@ function insert_text(text, spaces, popup)
var sel_start = textarea.selectionStart;
var sel_end = textarea.selectionEnd;
- mozWrap(textarea, text, '')
+ mozWrap(textarea, text, '');
textarea.selectionStart = sel_start + text.length;
textarea.selectionEnd = sel_end + text.length;
}
@@ -272,7 +272,7 @@ function mozWrap(txtarea, open, close)
}
var s1 = (txtarea.value).substring(0,selStart);
- var s2 = (txtarea.value).substring(selStart, selEnd)
+ var s2 = (txtarea.value).substring(selStart, selEnd);
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + open + s2 + close + s3;