diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index 54f781cd9b..72e4c0e4c4 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -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 = '
'; } @@ -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() {