diff options
author | Iwasa Kazmi <kzmizzz@gmail.com> | 2018-09-29 15:28:47 +0900 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-09-29 09:28:47 +0300 |
commit | 67806611923eee071513a74671bc00429c3a89fa (patch) | |
tree | e6c0a66e7b9c8999dd9dd74cf973dd955c7cb8da /public/js | |
parent | e6d54d511d43cf2419a8572ca1432ec553df7d35 (diff) | |
download | gitea-67806611923eee071513a74671bc00429c3a89fa.tar.gz gitea-67806611923eee071513a74671bc00429c3a89fa.zip |
Fix layout of the topics editing form (#4971)
* Fix layout of the topic edit.
- made right-hand column wider so that it has enough space for "Done" button.
- fixed issue that jQuery's .show() breaks functionality of the Semantic UI Grid.
* Improve switching visibility of the topic edit
Changes to support old browsers that doesn't support 'flex' keyword.
- Removed style "display: none" from index.css so that
the grid can be displayed without specifying new "display" style.
- Added style "display:none" to the grid element in HTML template
as the initial style.
- In index.js, visibility of the grid element is changed by
set "display:none" style to the element or removing it from the element.
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js index 4f55e23174..7700093598 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2425,7 +2425,7 @@ function initTopicbar() { mgrBtn.click(function() { viewDiv.hide(); - editDiv.show(); + editDiv.css('display', ''); // show Semantic UI Grid }); function getPrompts() { @@ -2456,7 +2456,7 @@ function initTopicbar() { for (var i=0; i < topicArray.length; i++) { $('<div class="ui green basic label topic" style="cursor:pointer;">'+topicArray[i]+'</div>').insertBefore(last) } - editDiv.hide(); + editDiv.css('display', 'none'); // hide Semantic UI Grid viewDiv.show(); } }).fail(function(xhr){ |