From cbd3c45700b54336dd0f766f57760dd90a3a4258 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 17 Mar 2021 14:54:53 +0530 Subject: [PATCH] construct dom elements without parsing html --- www/common/common-ui-elements.js | 3 ++- www/common/drive-ui.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 1104d5393..2af85f2ec 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1936,7 +1936,8 @@ define([ $body: $('body') }); var $modal = modal.$modal; - var $title = $('

').html(" " + Messages.fm_newButton); + var $title = $(h('h3', [ h('i.fa.fa-plus'), ' ', Messages.fm_newButton ])); + var $description = $('

').html(Messages.creation_newPadModalDescription); $modal.find('.cp-modal').append($title); $modal.find('.cp-modal').append($description); diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 6446afaff..22b4f1460 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -3074,7 +3074,7 @@ define([ $body: $('body') }); var $modal = modal.$modal; - var $title = $('

').html(" " + Messages.fm_newButton); + var $title = $(h('h3', [ h('i.fa.fa-plus'), ' ', Messages.fm_newButton ])); var $description = $('

').text(Messages.fm_newButtonTitle); $modal.find('.cp-modal').append($title); $modal.find('.cp-modal').append($description);