fix editor js
This commit is contained in:
parent
58a781d9e4
commit
e979aa0c32
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ function showControls(filename,writeperms){
|
||||||
// Loads the control bar at the top.
|
// Loads the control bar at the top.
|
||||||
$('.actions,#file_action_panel').fadeOut('slow').promise().done(function() {
|
$('.actions,#file_action_panel').fadeOut('slow').promise().done(function() {
|
||||||
// Load the new toolbar.
|
// Load the new toolbar.
|
||||||
var savebtnhtml;
|
var editorcontrols;
|
||||||
if(writeperms=="true"){
|
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>';
|
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);
|
result = jQuery.parseJSON(data.responseText);
|
||||||
if(result.status == 'success'){
|
if(result.status == 'success'){
|
||||||
// Save mtime
|
// Save mtime
|
||||||
$('#editor').attr('data-mtime', result.data.mtime);
|
$('#editor').attr('data-mtime', result.data.mtime);
|
||||||
// Initialise the editor
|
// Initialise the editor
|
||||||
showControls(filename,result.data.write);
|
showControls(filename,result.data.write);
|
||||||
$('table').fadeOut('slow', function() {
|
$('table').fadeOut('slow', function() {
|
||||||
|
|
Loading…
Reference in a new issue