From f75a104c0a54c3396bc22ef949f2acc6d2ad1d86 Mon Sep 17 00:00:00 2001
From: michael anello <michael@anelloconsulting.com>
Date: Mon, 7 Mar 2011 16:41:13 -0500
Subject: [PATCH] Issue #1074088: fixed incorrect variables being displayed

---
 devel_themer.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/devel_themer.js b/devel_themer.js
index edd3743..6c9376e 100644
--- a/devel_themer.js
+++ b/devel_themer.js
@@ -211,12 +211,12 @@
     var parents = '';
     parents = strs.parents +' <span class="parents">';
     for(i=1;i<objs.length;i++) {
-      var id = $(objs[i]).attr('thmr')
-      var pvars = Drupal.settings[id];
+      var thmrid = $(objs[i]).attr('thmr')
+      var pvars = Drupal.settings[thmrid];
       parents += i!=1 ? '&lt; ' : '';
       // populate the parents
       // each parent is wrapped with a span containing a 'trig' attribute with the id of the element it represents
-      parents += '<span class="parent" trig="'+ id +'">'+ pvars.name +'</span> ';
+      parents += '<span class="parent" trig="'+ thmrid +'">'+ pvars.name +'</span> ';
     }
     parents += '</span>';
     // stick the parents spans in the #parents div
@@ -259,9 +259,7 @@
         $('#themer-popup dt.candidates-type').empty().prepend(strs.candidate_files);
       }
 
-      
       // Use drupal ajax to do what we need 
-      uri = Drupal.settings.devel_themer_uri + '/' + id;
       vars_div_array = $('div.themer-variables');
       vars_div = vars_div_array[0];
       
-- 
1.7.4.1

