Skip to contentSkip to conversation

toaster: update directory tree expansion

PATCH New Elliot Smith 1 participant 1 message Aug 25, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: update directory tree expansion

From: David Reyna <[email protected]>

The ajax query that fetches the directory data on an expand request is now returning the response data already in an object form. so the parseJSON() call is no longer needed (and is currently returning a parse error).

[YOCTO #7810]

---
 bitbake/lib/toaster/toastergui/templates/dirinfo.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/dirinfo.html +1 -2
index 11c709a..a5bc481 100644
@@ -40,8 +40,7 @@
                         url     : url,
                         data    : "start=" + start,
                         success : function(response) {
-                            var objects = $.parseJSON(response);
-                            addRows(n, objects)
+                            addRows(n, response)
                         },
                         error   : function(jqXHR, textStatus, errorThrown ) {alert(textStatus + ":" + errorThrown)},
                      });
Signature · 12 lines
1.9.3

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.