diff options
author | Marvin Thomas Rabe <m.rabe@echtzeitraum.de> | 2011-10-04 23:01:05 +0400 |
---|---|---|
committer | Marvin Thomas Rabe <m.rabe@echtzeitraum.de> | 2011-10-04 23:01:05 +0400 |
commit | 74d41b637808327bdf79acd964c424a2321cac23 (patch) | |
tree | 8297cd25696a69cf27ea98830fa120625be895e8 | |
parent | c71d28da397c901693eae0460ea3a481c2fd89d9 (diff) |
fixed scrollbar issues. fixed missing breadcrumb image.
-rw-r--r-- | css/style.css | 5 | ||||
-rw-r--r-- | js/editor.js | 13 |
2 files changed, 6 insertions, 12 deletions
diff --git a/css/style.css b/css/style.css index 2722469..9ad6eea 100644 --- a/css/style.css +++ b/css/style.css @@ -1,11 +1,8 @@ #editor{ position: absoloute; display: block; - padding-top: 40px -/* - top: 41px; + top: 80px; left: 160px; -*/ } #editorwrapper{ position: absoloute; diff --git a/js/editor.js b/js/editor.js index 1dd4b5d..779c292 100644 --- a/js/editor.js +++ b/js/editor.js @@ -1,9 +1,6 @@ function setEditorSize(){ // Sets the size of the text editor window. - //$('#editor').css('height', $(window).height()-81); - //$('#editor').css('height', $(window).height()-121); - fillHeight($('#editor')); - //$('#editor').css('width', $(window).width()-160); + fillWindow($('#editor')); } function getFileExtension(file){ @@ -13,7 +10,7 @@ function getFileExtension(file){ function setSyntaxMode(ext){ // Loads the syntax mode files and tells the editor - var filetype = new Array() + var filetype = new Array(); // Todo finish these filetype["php"] = "php"; filetype["html"] = "html"; @@ -42,7 +39,7 @@ function showControls(filename){ var html = '<input type="button" id="editor_close" value="Close">'; $('#controls').append(html); $('#editorbar').fadeIn('slow'); - var breadcrumbhtml = '<div class="crumb svg" id="breadcrumb_file" style="background-image:url("/core/img/breadcrumb.png")"><a href="#">'+filename+'</a></div>'; + var breadcrumbhtml = '<div class="crumb svg" id="breadcrumb_file" style="background-image:url("../core/img/breadcrumb.png")"><a href="#">'+filename+'</a></div>'; $('.actions').before(breadcrumbhtml); $('.actions').before(savebtnhtml); }); @@ -131,13 +128,13 @@ function showFileEditor(dir,filename){ $('#editor').attr('data-filename', filename); window.aceEditor = ace.edit("editor"); aceEditor.setShowPrintMargin(false); + setEditorSize(); setSyntaxMode(getFileExtension(filename)); OC.addScript('files_texteditor','aceeditor/theme-clouds', function(){ window.aceEditor.setTheme("ace/theme/clouds"); }); }); - bindControlEvents(); - setEditorSize(); + bindControlEvents(); // End success } // End ajax |