]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed scrollbar issues. fixed missing breadcrumb image.
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Tue, 4 Oct 2011 19:01:05 +0000 (21:01 +0200)
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Tue, 4 Oct 2011 19:01:05 +0000 (21:01 +0200)
apps/files_texteditor/css/style.css
apps/files_texteditor/js/editor.js

index 272246901cb9ffa74c5d926f034e988358ad52e5..9ad6eeaa81499b0cf12af75f619b72461f45bb45 100644 (file)
@@ -1,11 +1,8 @@
 #editor{
        position: absoloute;
        display: block;
-       padding-top: 40px
-/*     
-       top: 41px;
+       top: 80px;
        left: 160px;
-*/
 }
 #editorwrapper{
        position: absoloute;
index 1dd4b5d6152a97f14bd0a868c028fa8a3e1f8776..779c292a31e3afcb98f7d94eb49df17815ab326c 100644 (file)
@@ -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(&quot;/core/img/breadcrumb.png&quot;)"><a href="#">'+filename+'</a></div>';
+               var breadcrumbhtml = '<div class="crumb svg" id="breadcrumb_file" style="background-image:url(&quot;../core/img/breadcrumb.png&quot;)"><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