Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-11351 Removed a redundant check for a multiLang JS variable

  • Loading branch information...
commit edf9554096ad60f758cc94b4fa05313a3ec5c7a3 1 parent 874833b
nicolasconnault authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/editor/htmlarea/htmlarea.php
8 lib/editor/htmlarea/htmlarea.php
View
@@ -225,7 +225,7 @@ function HTMLArea(textarea, config) {
$key = str_replace('_', '-', $key);
$strlangarray .= '"'.$key.' ": "'.$key.'_ML",';
}
- $strlangarray = substr($strlangarray, 0, -1);
+ $strlangarray = substr($strlangarray, 0, -1);
echo $strlangarray;
?>
};
@@ -1979,9 +1979,7 @@ classAttr = classAttr.replace(/multilang/, '').trim();
if (insertNewSpan && lang != '') {
var str = '<span lang="'+lang.trim()+'"';
- if (multiLang) {
- str += ' class="multilang"';
- }
+ str += ' class="multilang"';
str += '>';
str += selectedHTML;
str += '</span>';
@@ -2153,7 +2151,7 @@ classAttr = classAttr.replace(/multilang/, '').trim();
case ',': cmd = "subscript"; break;
case '.': cmd = "superscript"; break;
- case 'v':
+ case 'v':
if (! HTMLArea.is_gecko ) {
cmd = "paste";
}
Please sign in to comment.
Something went wrong with that request. Please try again.