index.php: strip scripts from widgets before move (#4752)

This commit is contained in:
kulikov-a 2021-03-08 21:45:00 +03:00 committed by GitHub
parent c08a4fb9fd
commit 405395264f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,6 +263,9 @@ include("fbegin.inc");?>
// rearrange widgets to stored column
$(".widgetdiv").each(function(){
var widget = $(this);
widget.find('script').each(function(){
$(this).remove();
});
var container = $(this).parent();
var target_col = widget.data('sortkey').split('-')[1];
if (target_col != undefined) {