1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Hide palette until nodes loaded

This commit is contained in:
Nick O'Leary 2014-03-17 16:26:15 +00:00
parent f666b0e6f9
commit 4dce130acb
3 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,7 @@
</div>
<div id="main-container" class="sidebar-closed">
<div id="palette">
<i class="palette-spinner spinner"></i>
<div class="palette-scroll">
<div class="palette-category">
<div class="palette-header"><i class="expanded icon-chevron-down"></i><span>inputs</span></div>

View File

@ -142,6 +142,9 @@ var RED = function() {
function loadNodes() {
$.get('nodes', function(data) {
$("body").append(data);
$(".palette-spinner").hide();
$(".palette-scroll").show();
$("#palette-search").show();
loadFlows();
});
}

View File

@ -108,6 +108,7 @@ a.brand img {
user-select: none;
}
.palette-scroll {
display: none;
position: absolute;
top: 0;
left:0;
@ -118,8 +119,12 @@ a.brand img {
box-sizing:border-box;
-moz-box-sizing: border-box;
}
.palette-spinner {
padding-top: 40px;
}
#palette-search {
position: absolute;
display: none;
bottom: 0;
left:0;
right:0;