fixed jquery remove error on line 130

This commit is contained in:
Dieter 2012-06-29 17:25:29 +02:00
parent b914e09f35
commit cea12d2538

View File

@ -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();