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 Ad Schellevis
parent 70059dc6b5
commit 93fc88741a

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) {