From daef5fe9d238eec9913b98b1e90db5fdf71e33cd Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Mon, 29 Oct 2018 22:03:40 +0800 Subject: [PATCH] Show spinning when uploading --- .../javascript/editor/gollum.editor.js.erb | 2 +- lib/gollum/public/gollum/stylesheets/editor.scss | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/lib/gollum/public/gollum/javascript/editor/gollum.editor.js.erb b/lib/gollum/public/gollum/javascript/editor/gollum.editor.js.erb index ad46f548..464e1948 100755 --- a/lib/gollum/public/gollum/javascript/editor/gollum.editor.js.erb +++ b/lib/gollum/public/gollum/javascript/editor/gollum.editor.js.erb @@ -47,7 +47,7 @@ height: textarea.height(), 'class': textarea.attr('class'), 'id': 'gollum-editor-body-ace' - }).insertBefore(textarea); + }).insertAfter(textarea); textarea.css('display', 'none'); // NOTE: This requires the page to have only one 'gollum-editor-body'. diff --git a/lib/gollum/public/gollum/stylesheets/editor.scss b/lib/gollum/public/gollum/stylesheets/editor.scss index 881b58d4..0b543732 100644 --- a/lib/gollum/public/gollum/stylesheets/editor.scss +++ b/lib/gollum/public/gollum/stylesheets/editor.scss @@ -374,7 +374,7 @@ a#function-search { @include editor-button(16); } /* @section uploads */ -#gollum-editor-body { +#gollum-editor-body-ace { & + div { display: none; font-size: 1.5em; @@ -397,20 +397,6 @@ a#function-search { @include editor-button(16); } } } -#gollum-editor-body-ace { - &.dragging { - box-shadow: 0 0 10px #AAE000; - } - - &.uploading { - opacity: 0.5; - - & + div { - display: block; - } - } -} - /* @section help */ #gollum-editor-help { clear: both;