correct editor's mode when editing javascript

This commit is contained in:
ilvalle
2013-10-17 16:32:22 +02:00
parent f4fc987597
commit 037b499cb2
2 changed files with 2 additions and 2 deletions

View File

@@ -606,7 +606,7 @@ def edit():
elif filename[-4:] == '.css':
filetype = 'css'
elif filename[-3:] == '.js':
filetype = 'js'
filetype = 'javascript'
else:
filetype = 'html'

View File

@@ -78,7 +78,7 @@
return marker;
}
{{if filetype in ('html', 'js', 'css'):}}
{{if filetype in ('html', 'javascript', 'css'):}}
// must be here or break emmet/zencoding
CodeMirror.defaults.extraKeys["Ctrl-S"] =
function(instance) {