Skip to content
Snippets Groups Projects
Commit e979aa0c authored by Tom Needham's avatar Tom Needham
Browse files

fix editor js

parent 58a781d9
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ function showControls(filename,writeperms){
// Loads the control bar at the top.
$('.actions,#file_action_panel').fadeOut('slow').promise().done(function() {
// Load the new toolbar.
var savebtnhtml;
var editorcontrols;
if(writeperms=="true"){
var editorcontrols = '<button id="editor_save">'+t('files_texteditor','Save')+'</button><div class="separator"></div><label for="gotolineval">Go to line:</label><input type="text" id="gotolineval"><div class="separator"></div>';
}
......@@ -181,7 +181,7 @@ function showFileEditor(dir,filename){
result = jQuery.parseJSON(data.responseText);
if(result.status == 'success'){
// Save mtime
$('#editor').attr('data-mtime', result.data.mtime);
$('#editor').attr('data-mtime', result.data.mtime);
// Initialise the editor
showControls(filename,result.data.write);
$('table').fadeOut('slow', function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment