BUGFIX: solved bug adding a new widget to the top of the widget area, then moving it to the bottom when saving

This commit is contained in:
g4b0 2013-04-02 09:07:00 +02:00
parent 0177699620
commit 0982236195
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@
$(this).data('maxid', newID);
var widgetContent = response.replace(/Widget\[0\]/gi, "Widget[new-" + (newID) + "]");
$('#usedWidgets-'+$(this).attr('name')).prepend(widgetContent);
$('#usedWidgets-'+$(this).attr('name')).append(widgetContent);
this.rewriteWidgetAreaAttributes();
},