mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
use already fetched values
This commit is contained in:
parent
cc7d188927
commit
33ef8b9d2c
@ -5,7 +5,7 @@
|
|||||||
var parentName=$(this).attr('name');
|
var parentName=$(this).attr('name');
|
||||||
this.rewriteWidgetAreaAttributes();
|
this.rewriteWidgetAreaAttributes();
|
||||||
|
|
||||||
var availableWidgets=$('#availableWidgets-'+$(this).attr('name')).children().each(function() {
|
var availableWidgets=$('#availableWidgets-'+parentName).children().each(function() {
|
||||||
// Don't run on comments, whitespace, etc
|
// Don't run on comments, whitespace, etc
|
||||||
if($(this)[0].nodeType==1) {
|
if($(this)[0].nodeType==1) {
|
||||||
// Gotta change their ID's because otherwise we get clashes between two tabs
|
// Gotta change their ID's because otherwise we get clashes between two tabs
|
||||||
|
Loading…
Reference in New Issue
Block a user