Commit 8871e745 authored by yPhil's avatar yPhil
Browse files

UI: No content: Center button

parent 40e9c738
......@@ -25,6 +25,25 @@ body {
background-color: var(--bg-color-ter) !important;
}
.deadCenter {
width: 300px;
height: 300px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -150px;
text-align:center;
}
.hidden {
display:none;
}
#nothingButton {
margin-top:50%;
}
li.ui-tabs-active,
li.mobTab:first-child {
box-shadow: none !important;
......
......@@ -277,12 +277,19 @@ MOB.dialog = {
class: "dangerous translate",
click: function() {
$selectedTab.remove();
$selectedPanel.remove();
MOB.tab.saveTabs();
MOB.dialog.kill($dialog);
// $tabs.tabs('option', 'active', previousTabIndex).tabs('refresh');
if ($.parseJSON(MOB.prefs.readConfig('tabs')).length > 0) {
$tabs.tabs('option', 'active', previousTabIndex).tabs('refresh');
} else {
console.error('Zero tabs!')
}
}
},
......
......@@ -5,7 +5,10 @@ MOB.tab = {
},
populate:function(tabs, clickToRefresh) {
console.log('POPTABS: (%s)', $('div#tabs').length);
// if ($.parseJSON(MOB.prefs.readConfig('tabs')).length > 0) {
// }
$('div#tabs ul li').remove();
$('div#tabs div').remove();
......
......@@ -192,6 +192,7 @@ MOB.utilities = {
this.radialLoader = $('#loadRadial');
this.radialLoaderLabel = $('#loadRadial > span');
this.radialLoader.fadeIn('fast');
this.progressContainer.append( this.progressElt );
$('body').prepend(this.progressContainer);
......
......@@ -7,14 +7,12 @@
<link rel="icon" type="image/png" href="/static/images/petrolette.png" />
<link rel="preload" as="font" href="public/font/fontello.eot">
<link rel="preload" as="font" href="public/font/fontello.svg">
<link rel="preload" as="font" href="public/font/fontello.ttf">
<link rel="preload" as="font" href="public/font/fontello.woff">
<link rel="preload" as="font" href="public/font/fontello.woff2">
<link rel="preload" as="style" href="/static/css/themes/day/jquery-ui.css">
<link rel="preload" as="style" href="/static/css/fontello.css">
<link rel="preload" as="style" href="/static/css/themes/day.css">
......@@ -154,7 +152,7 @@
<script src="/static/lib/js/dialog.js"></script>
<script src="/static/lib/js/utilities.js"></script>
<div id="loadRadial" class="c100 small green dark p0">
<div id="loadRadial" class="c100 small green dark p0 hidden">
<span>0%</span>
<div class="slice">
<div class="bar"></div>
......@@ -162,6 +160,13 @@
</div>
</div>
<div class="deadCenter">
<button id="nothingButton">
You have no content. <br/>
Click here to add some.
</button>
</div>
<div id="preloaded-images">
<img src="/static/images/feed-toggle-triangle-fff.png" width="1" height="1" alt="Image 01" />
<img src="/static/images/feed-toggle-triangle-000.png" width="1" height="1" alt="Image 02" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment