mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-3807-html-special-chars-conversion' into 'develop'
Ent 3807 html special chars conversion See merge request artica/pandorafms!2320
This commit is contained in:
commit
c5be8e55ae
@ -317,9 +317,9 @@ $(document).ready (function () {
|
|||||||
jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>,
|
jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>,
|
||||||
values,
|
values,
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
original_command = js_html_entity_decode (data["command"]);
|
original_command = data["command"];
|
||||||
render_command_preview (original_command);
|
render_command_preview (original_command);
|
||||||
command_description = js_html_entity_decode (data["description"]);
|
command_description = data["description"];
|
||||||
render_command_description(command_description);
|
render_command_description(command_description);
|
||||||
|
|
||||||
var max_fields = parseInt('<?php echo $config['max_macro_fields']; ?>');
|
var max_fields = parseInt('<?php echo $config['max_macro_fields']; ?>');
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
var original_command = "";
|
var original_command = "";
|
||||||
|
|
||||||
function parse_alert_command(command, classs) {
|
function parse_alert_command(command, classs) {
|
||||||
if (classs == "recovery") {
|
if (classs == "recovery") {
|
||||||
classs = "fields_recovery";
|
classs = "fields_recovery";
|
||||||
@ -34,13 +33,13 @@ function parse_alert_command(command, classs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function render_command_preview(original_command) {
|
function render_command_preview(original_command) {
|
||||||
$("#textarea_command_preview").text(
|
$("#textarea_command_preview").html(
|
||||||
parse_alert_command(original_command, "")
|
parse_alert_command(original_command, "")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function render_command_recovery_preview(original_command) {
|
function render_command_recovery_preview(original_command) {
|
||||||
$("#textarea_command_recovery_preview").text(
|
$("#textarea_command_recovery_preview").html(
|
||||||
parse_alert_command(original_command, "recovery")
|
parse_alert_command(original_command, "recovery")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user