From 09c1179094af696002e54c8e462755b499341032 Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Tue, 4 Oct 2011 19:07:22 +0100 Subject: [PATCH] Fixed breadcrumb issue. --- apps/files_texteditor/css/style.css | 2 +- apps/files_texteditor/js/editor.js | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/files_texteditor/css/style.css b/apps/files_texteditor/css/style.css index e94244d1be3..16d9458608d 100644 --- a/apps/files_texteditor/css/style.css +++ b/apps/files_texteditor/css/style.css @@ -24,6 +24,6 @@ float: left; } #saving_icon{ - padding-top: 3px; + margin-top: 3px; float: left; } \ No newline at end of file diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index 73bc2f41114..814323732fa 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -1,6 +1,7 @@ function setEditorSize(){ // Sets the size of the text editor window. - $('#editor').css('height', $(window).height()-81); + //$('#editor').css('height', $(window).height()-81); + $('#editor').css('height', $(window).height()-121); $('#editor').css('width', $(window).width()-160); $('#editor').css('padding-top', '40px'); } @@ -38,10 +39,10 @@ function showControls(filename){ $('.actions,#file_action_panel').fadeOut('slow').promise().done(function() { // Load the new toolbar. var savebtnhtml = ''; - var html = ''; + var html = ''; $('#controls').append(html); $('#editorbar').fadeIn('slow'); - var breadcrumbhtml = '
'+filename+'
'; + var breadcrumbhtml = ''; $('.actions').before(breadcrumbhtml); $('.actions').before(savebtnhtml); }); @@ -146,8 +147,10 @@ function showFileEditor(dir,filename){ function hideFileEditor(){ // Fade out controls $('#editor_close').fadeOut('slow'); + // Fade out the save button + $('#editor_save').fadeOut('slow'); // Fade out breadcrumb - $('.actions').prev().fadeOut('slow'); + $('#breadcrumb_file').fadeOut('slow'); // Fade out editor $('#editor').fadeOut('slow', function(){ $('#editor_close').remove(); -- 2.39.5