Add info message in file editor to show files

This commit is contained in:
Marcos Lilljedahl
2018-01-22 23:33:02 -03:00
parent ad28ce54dc
commit c30d71d8f3
3 changed files with 293 additions and 35 deletions

View File

@@ -10,6 +10,12 @@
margin-bottom: 0px;
}
.alert-newfile {
text-align: center;
padding: 3px;
font-size: 15px;
}
.col-md-3 {
overflow-x: auto;
}

View File

@@ -16,6 +16,12 @@
<div class="row" style="height: 100%">
<div class="col-md-3">
<div>
<div class="alert alert-info alert-newfile" role="alert">
<span><strong>Create or upload</strong> files in the session terminal and then refresh </span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<button type="button" id='treeReloadBtn' class="btn btn-sm">
<span class="oi oi-reload" title="Refresh" aria-hidden="true"></span>
</button>
@@ -42,7 +48,7 @@
$(document).ready(function() {
var alertShow = function(msg) {
$div = $('.alert-info');
$div = $('#alert-info');
$div.find('.alert-msg').text(msg);
if ($div.css('display') === 'none') {
// fadein, fadeout.