mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-01 05:38:59 +02:00
Merge pull request #46 from g4b0/append-widget-to-bottom
BUGFIX: solved bug adding a new widget to the top of the widget area, th...
This commit is contained in:
commit
6167c701f3
@ -132,7 +132,7 @@
|
|||||||
$(this).data('maxid', newID);
|
$(this).data('maxid', newID);
|
||||||
|
|
||||||
var widgetContent = response.replace(/Widget\[0\]/gi, "Widget[new-" + (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();
|
this.rewriteWidgetAreaAttributes();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user