mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
construct dom elements without parsing html
This commit is contained in:
parent
b5ecc6efe5
commit
cbd3c45700
@ -1936,7 +1936,8 @@ define([
|
||||
$body: $('body')
|
||||
});
|
||||
var $modal = modal.$modal;
|
||||
var $title = $('<h3>').html("<i class='fa fa-plus'></i> " + Messages.fm_newButton);
|
||||
var $title = $(h('h3', [ h('i.fa.fa-plus'), ' ', Messages.fm_newButton ]));
|
||||
|
||||
var $description = $('<p>').html(Messages.creation_newPadModalDescription);
|
||||
$modal.find('.cp-modal').append($title);
|
||||
$modal.find('.cp-modal').append($description);
|
||||
|
||||
@ -3074,7 +3074,7 @@ define([
|
||||
$body: $('body')
|
||||
});
|
||||
var $modal = modal.$modal;
|
||||
var $title = $('<h3>').html("<i class='fa fa-plus'></i> " + Messages.fm_newButton);
|
||||
var $title = $(h('h3', [ h('i.fa.fa-plus'), ' ', Messages.fm_newButton ]));
|
||||
var $description = $('<p>').text(Messages.fm_newButtonTitle);
|
||||
$modal.find('.cp-modal').append($title);
|
||||
$modal.find('.cp-modal').append($description);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user