summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/lib/summernote/src/js/Renderer.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js/Renderer.js')
-rw-r--r--addons/web_editor/static/lib/summernote/src/js/Renderer.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/web_editor/static/lib/summernote/src/js/Renderer.js b/addons/web_editor/static/lib/summernote/src/js/Renderer.js
index 2c2c8f4ac00..c6142333d30 100644
--- a/addons/web_editor/static/lib/summernote/src/js/Renderer.js
+++ b/addons/web_editor/static/lib/summernote/src/js/Renderer.js
@@ -94,18 +94,18 @@ define([
* @param {String} [footer='']
*/
var tplDialog = function (className, title, body, footer) {
- return '<div class="' + className + ' modal" aria-hidden="false">' +
+ return '<div class="' + className + ' modal" role="dialog" aria-hidden="false">' +
'<div class="modal-dialog">' +
'<div class="modal-content">' +
(title ?
- '<div class="modal-header">' +
+ '<header class="modal-header">' +
'<button type="button" class="close" aria-hidden="true" tabindex="-1">&times;</button>' +
'<h4 class="modal-title">' + title + '</h4>' +
- '</div>' : ''
+ '</header>' : ''
) +
- '<div class="modal-body">' + body + '</div>' +
+ '<main class="modal-body">' + body + '</main>' +
(footer ?
- '<div class="modal-footer">' + footer + '</div>' : ''
+ '<header class="modal-footer">' + footer + '</header>' : ''
) +
'</div>' +
'</div>' +
@@ -817,7 +817,7 @@ define([
$dialog.addClass('note-air-layout');
$dialog.attr('id', 'note-dialog-' + id);
$dialog.find('button.close, a.modal-close').click(function () {
- $(this).closest('.modal').modal('hide');
+ $(this).closest('[role="dialog"]').modal('hide');
});
$dialog.appendTo($container);
};
@@ -905,7 +905,7 @@ define([
var $dialogContainer = options.dialogsInBody ? $(document.body) : $editor;
var $dialog = $(tplDialogs(langInfo, options)).prependTo($dialogContainer);
$dialog.find('button.close, a.modal-close').click(function () {
- $(this).closest('.modal').modal('hide');
+ $(this).closest('[role="dialog"]').modal('hide');
});
//09. Editor/Holder switch