Commits

funkybob  committed c3c6b47

Fixed guard tests for CodeMirror and CKEditor

  • Participants
  • Parent commits 02710cc

Comments (0)

Files changed (3)

File gnocchi/cms/static/gnocchi/ckeditor_page.js

 django.jQuery(document).ready(function () {
-	if ( document.CKEDITOR === undefined ) { return; }
+	if ( CKEDITOR === undefined ) { return; }
 	CKEDITOR.replace('id_content', {
 		shiftEnterMode: CKEDITOR.ENTER_BR
 	});

File gnocchi/cms/static/gnocchi/codemirror_stylesheet.js

 django.jQuery(document).ready(function () {
-        if( document.CodeMirror === undefined ) { return; }
+	if( CodeMirror === undefined ) { return; }
 	editor = CodeMirror.fromTextArea(document.getElementById('id_content'), {
 		lineNumbers: true,
 		mode: 'text/css'

File gnocchi/cms/static/gnocchi/codemirror_template.js

 django.jQuery(document).ready(function () {
-        if( document.CodeMirror === undefined ) { return; }
+	if( CodeMirror === undefined ) { return; }
 	editor = CodeMirror.fromTextArea(document.getElementById('id_content'), {
 		lineNumbers: true,
 		mode: 'text/html'