use already fetched values

This commit is contained in:
maks feltrin 2017-07-09 10:17:44 +02:00 committed by Daniel Hensby
parent cc7d188927
commit 33ef8b9d2c
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -5,7 +5,7 @@
var parentName=$(this).attr('name');
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
if($(this)[0].nodeType==1) {
// Gotta change their ID's because otherwise we get clashes between two tabs