mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
fixed jquery remove error on line 130
This commit is contained in:
parent
b914e09f35
commit
cea12d2538
@ -127,7 +127,7 @@
|
|||||||
insertWidgetEditor: function(response) {
|
insertWidgetEditor: function(response) {
|
||||||
// Remove placeholder text
|
// Remove placeholder text
|
||||||
if($('#NoWidgets-'+$(this).attr('name')).length>0) {
|
if($('#NoWidgets-'+$(this).attr('name')).length>0) {
|
||||||
$('#usedWidgets-'+$(this).attr('name')).remove($('#NoWidgets-'+$(this).attr('name')));
|
$('#NoWidgets-'+$(this).attr('name')).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
var usedWidgets = $('#usedWidgets-'+$(this).attr('name')).children();
|
var usedWidgets = $('#usedWidgets-'+$(this).attr('name')).children();
|
||||||
|
Loading…
Reference in New Issue
Block a user