toaster: update directory tree expansion
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]
Signed-off-by David Reyna <[email protected]>
Signed-off-by Elliot Smith <[email protected]>
--- bitbake/lib/toaster/toastergui/templates/dirinfo.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/dirinfo.html +1 -2
@@ -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.