changeset 6c26f25d2ef5 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=6c26f25d2ef5
description:
Use panel for tab content
issue8599
review262031002
diffstat:
src/tab.js | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r c0d29e5b871a -r 6c26f25d2ef5 src/tab.js
--- a/src/tab.js Mon Sep 02 18:34:55 2019 +0200
+++ b/src/tab.js Mon Sep 02 18:36:52 2019 +0200
@@ -108,13 +108,15 @@
},
create_tabcontent: function() {
this.el = jQuery('<div/>', {
- 'class': this.class_
+ 'class': 'panel panel-default ' + this.class_,
});
var toolbar = this.create_toolbar().appendTo(this.el);
this.title = toolbar.find('.title');
- this.content = jQuery('<div/>').appendTo(this.el);
+ this.content = jQuery('<div/>', {
+ 'class': 'panel-body',
+ }).appendTo(this.el);
if (this.info_bar) {
this.el.append(this.info_bar.el);
@@ -158,7 +160,7 @@
},
create_toolbar: function() {
var toolbar = jQuery('<nav/>', {
- 'class': 'toolbar navbar navbar-default',
+ 'class': 'toolbar panel-heading',
'role': 'toolbar'
}).append(jQuery('<div/>', {
'class': 'container-fluid'
@@ -1347,7 +1349,7 @@
action.screen.tab = this;
}
}.bind(this));
- this.el.append(this.board.el);
+ this.content.append(this.board.el);
}.bind(this));
this.create_tabcontent();
this.set_name(this.name);