diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-04-24 17:15:00 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-27 12:36:54 +0200 |
| commit | 7f10b55a5035bd3cab48ba58a519510a25b94f60 (patch) | |
| tree | f7ef8d3ddec1c419d82dfe2eef3c00fff9b15cdd /addons/note/static/src | |
| parent | ea7c3f4a698bd027c307aef89fa2974916c4b9f5 (diff) | |
[REF] *: BS4, adapt display classes
The system completely changed. I also had to adapt classes to new
screen breakpoints.
hidden/hide -> d-none
show -> d-block
hidden-xs -> d-none d-md-(block/inline/...)
hidden-sm -> d-md-none d-lg-(block/inline/...)
hidden-md -> d-lg-none d-xl-(block/inline/...)
hidden-lg -> d-xl-none
visible-xs-* -> d-* d-md-none
visible-sm-* -> d-none d-md-* d-lg-none
visible-md-* -> d-none d-lg-* d-xl-none
visible-lg-* -> d-none d-xl-*
hidden-print -> d-print-none
visible-print-* -> d-none d-print-*
...
and all possible combination of those had to be handled too.
Diffstat (limited to 'addons/note/static/src')
| -rw-r--r-- | addons/note/static/src/js/systray_activity_menu.js | 6 | ||||
| -rw-r--r-- | addons/note/static/src/xml/systray.xml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/note/static/src/js/systray_activity_menu.js b/addons/note/static/src/js/systray_activity_menu.js index 8194cc17e6a..f65dfce244f 100644 --- a/addons/note/static/src/js/systray_activity_menu.js +++ b/addons/note/static/src/js/systray_activity_menu.js @@ -48,8 +48,8 @@ ActivityMenu.include({ if (noteDateTime) { params = _.extend(params, {'date_deadline': noteDateTime}); } - this.$('.o_note_show').removeClass('hidden'); - this.$('.o_note').addClass('hidden'); + this.$('.o_note_show').removeClass('d-none'); + this.$('.o_note').addClass('d-none'); this._rpc({ route: '/note/new', params: params, @@ -91,7 +91,7 @@ ActivityMenu.include({ } this.noteDateTimeWidget.appendTo(this.$('.o_note_datetime')); this.noteDateTimeWidget.$input.attr('placeholder', _t("Today")); - this.$('.o_note_show, .o_note').toggleClass('hidden'); + this.$('.o_note_show, .o_note').toggleClass('d-none'); this.$('.o_note_input').val('').focus(); }, /** diff --git a/addons/note/static/src/xml/systray.xml b/addons/note/static/src/xml/systray.xml index d1676c63761..56693a14544 100644 --- a/addons/note/static/src/xml/systray.xml +++ b/addons/note/static/src/xml/systray.xml @@ -5,7 +5,7 @@ <div class="o_note_show"> <a role="button" class="btn btn-block text-center">Add new note</a> </div> - <div class="o_note o_mail_preview hidden"> + <div class="o_note o_mail_preview d-none"> <div class="o_mail_preview_image o_mail_preview_app"> <img src="/note/static/description/icon.png" alt="Channel"/> </div> |
