mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Fixed the javascript of form editor of module plugin. TICKET: #1854
This commit is contained in:
parent
1b637a8d13
commit
166c4fe504
@ -367,6 +367,10 @@ function configure_modules_form () {
|
|||||||
$("input[name='throw_unknown_events']").check();
|
$("input[name='throw_unknown_events']").check();
|
||||||
else
|
else
|
||||||
$("input[name='throw_unknown_events']").uncheck();
|
$("input[name='throw_unknown_events']").uncheck();
|
||||||
|
|
||||||
|
if (data["id_plugin"] != undefined) {
|
||||||
|
$("#id_plugin").trigger("change");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"json"
|
"json"
|
||||||
);
|
);
|
||||||
@ -613,17 +617,10 @@ function add_macro_field(macro, row_model_id) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var field_desc = $('#'+row_id).children().eq(0).html();
|
var field_desc = $('#'+row_id).children().eq(0).html();
|
||||||
|
|
||||||
field_desc = field_desc.replace('macro_desc',macro_desc);
|
field_desc = field_desc.replace('macro_desc',macro_desc);
|
||||||
field_desc = field_desc.replace('macro_help',macro_help);
|
field_desc = field_desc.replace('macro_help',macro_help);
|
||||||
|
|
||||||
// Get the cloned forced title id and replace for a uniq id
|
|
||||||
regex = /forced_title_(\w+)/;
|
|
||||||
var forced_title_id = field_desc.match(regex)[1];
|
|
||||||
var uniq_id = 'id' + (new Date()).getTime();
|
|
||||||
|
|
||||||
field_desc = field_desc.replace(forced_title_id, uniq_id);
|
|
||||||
field_desc = field_desc.replace(forced_title_id, uniq_id);
|
|
||||||
|
|
||||||
$('#'+row_id).children().eq(0).html(field_desc);
|
$('#'+row_id).children().eq(0).html(field_desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user