diff options
author | Tom Needham <needham.thomas@gmail.com> | 2011-09-28 21:25:25 +0100 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2011-09-28 21:25:25 +0100 |
commit | bc7289bb284db0fe100be9e354fb4bcbc2d5b5b3 (patch) | |
tree | 204fdc3282fa6260eba837eb42a588d627eadfcf /apps/editor/js/editor.js | |
parent | 4fe993a55dd998146c36c6cc2aa190cbac82abde (diff) | |
download | nextcloud-server-bc7289bb284db0fe100be9e354fb4bcbc2d5b5b3.tar.gz nextcloud-server-bc7289bb284db0fe100be9e354fb4bcbc2d5b5b3.zip |
Changed theme. Editing is now default action for all supported types. Fixed static url.
Diffstat (limited to 'apps/editor/js/editor.js')
-rw-r--r-- | apps/editor/js/editor.js | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/apps/editor/js/editor.js b/apps/editor/js/editor.js index 324666110d8..8c7ae5856de 100644 --- a/apps/editor/js/editor.js +++ b/apps/editor/js/editor.js @@ -1,5 +1,7 @@ $(document).ready(function(){ + + // Set the editor size. doEditorResize(); @@ -15,7 +17,7 @@ $(document).ready(function(){ } // Set the theme - aceEditor.setTheme("ace/theme/cobalt"); + aceEditor.setTheme("ace/theme/clouds"); // Process the save button click event $('#editor_save').click(function(){ @@ -53,18 +55,6 @@ $(document).ready(function(){ // TODO give focus back to the editor // window.aceEditor.focus(); }); - - /* - // Process the gotoline button click event - $('#editor_goToLine').click(function(){ - var html = '<div id="dropdown" class="drop"><input type="text" id="editot_goToLine_line" size="20"><input type="button" id="editor_goToLine_gp" value="<?php echo $l->t(\'Go\'); ?>"></div>'; - $(html).appendTo($('#editor_goToLine')); - $('#dropdown').show('blind'); - - //window.aceEditor.gotoLine(100); - //TODO GIVE FOCUS BACK - }); - */ // Process the window resize event $(window).resize(function() { |