construct dom elements without parsing html

pull/1/head
ansuz 4 years ago
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…
Cancel
Save