summaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-01-14 15:36:57 +0000
committerTom Needham <needham.thomas@gmail.com>2012-01-14 15:36:57 +0000
commite979aa0c323481c68c0328f4ec0d790583be3e47 (patch)
tree1d16c4c46292e8778d3966cfd752c845c1d42662 /apps/files_texteditor
parent58a781d9e45620c28fd8ca31dc854ec8a6173a77 (diff)
downloadnextcloud-server-e979aa0c323481c68c0328f4ec0d790583be3e47.tar.gz
nextcloud-server-e979aa0c323481c68c0328f4ec0d790583be3e47.zip
fix editor js
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r--apps/files_texteditor/js/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index 54f781cd9b3..72e4c0e4c41 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 = '<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() {