<!-- html body div.container-fluid div.row nav.navbar.flex-column.flex-md-row.affix -->
<!-- row.nav + row.nav div.row:nth-child(2) > nav:nth-child(1) -->
- <style>
+ <style>
+
#row-main_menu {
top: 0;
width: 100%;
#row-tree1-messages nav, #tree1-messages {
margin-bottom: 0px;
}
+
+ #row-tree1-messages {
+ overflow-y: scroll;
+ height: 50px;
+ }
+
+ /* #tree1-messages nav { */
+ /* margin-right: -15px; */
+ /* margin-left: -15px; */
+ /* } */
#file_management {
z-index: 8500;
<div class="row" data-spy="affix" id="row-tree1-messages">
- <!-- <footer class="footer"> -->
<nav class="navbar" >
- <!-- <div class="container-fluid"> -->
- <!-- <div class="navbar-header" > -->
- <!-- <a class="navbar-brand" href="#">Messages</a> -->
- <!-- </div> -->
- <!-- <h2>Messages</h2> -->
- <!-- <span id="tree1-messages" class="nav navbar-nav col-sm-12 navbar-right alert alert-success" >....</span> -->
- <footer class="footer alert alert-success" id="tree1-messages">No message.</footer>
- <!-- alert alert-success alert-info alert-warning alert-danger -->
- <!-- </div> -->
+ <!-- <span id="tree1-messages" class="nav navbar-nav col-sm-12 navbar-right alert alert-success" >....</span> -->
+ <!-- <footer class="footer alert alert-success" id="tree1-messages" >No message.</footer> -->
+ <div id="tree1-messages" >
+ <nav class="nav-bar alert alert-success">No message.</nav>
+ </div>
</nav>
- <!-- </footer> -->
</div> <!-- row -->
'use strict';
const messageClasses = new Set(["alert-success","alert-info","alert-warning","alert-danger"]);
if (messageClasses.has(messageClass)) {
+
$(msgCssSelStr).removeClass("alert-success alert-info alert-warning alert-danger");
- $(msgCssSelStr).addClass(messageClass);
+ // $(msgCssSelStr).addClass(messageClass);
+
if ( messageClass == "alert-danger" ) {
$.ui.fancytree.error(message); // debugLevel >= 1
// alert(message); // Activer lorsque la mise au point sera achevée.
console.debug(message); // debugLevel >= 4
$.ui.fancytree.debug(message); // debugLevel >= 4
};
- $(msgCssSelStr).text(message);
+ $(msgCssSelStr).html('<nav class="nav-bar alert">'+message+'</nav>'+$(msgCssSelStr).html());
+ //$("#row-tree1-messages > nav nav:first-child").addClass(messageClass);
+ $(msgCssSelStr+" > nav:first-child").addClass(messageClass);
+ //$(msgCssSelStr).text(message);
} else {
alert("The messageClass : |"+messageClass+"| is not in "+messageClasses); //TODO afficher la chaine messageClasses
};