]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: update directory tree expansion
authorDavid Reyna <David.Reyna@windriver.com>
Tue, 25 Aug 2015 08:32:15 +0000 (09:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 29 Aug 2015 12:57:18 +0000 (13:57 +0100)
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>
lib/toaster/toastergui/templates/dirinfo.html

index 11c709ac9aefe6dcc0ba4f8b61d0977aaa065bd1..a5bc48127c7de7efc8372854d27ed56e87255c70 100644 (file)
@@ -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)},
                      });