aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2015-08-25 09:32:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-29 13:57:18 +0100
commite237d231d52ef71e0f369d1af34f214e6c2359f2 (patch)
tree79c7d62934dbb461651525af3d6164cbc202df8b
parentdf2b778efd2ecc48f6c5a3ed446f6459f2250035 (diff)
downloadbitbake-e237d231d52ef71e0f369d1af34f214e6c2359f2.tar.gz
toaster: update directory tree expansion
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 <David.Reyna@windriver.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/toastergui/templates/dirinfo.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/templates/dirinfo.html b/lib/toaster/toastergui/templates/dirinfo.html
index 11c709ac9..a5bc48127 100644
--- a/lib/toaster/toastergui/templates/dirinfo.html
+++ b/lib/toaster/toastergui/templates/dirinfo.html
@@ -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)},
});