bitbake: toasterui: views Remove unused xhr_typeahead view definition

The one thing left being used in this definition was a response which
contains the list of layers which would be deleted if you change the
project release. This patch moves that to it's own url/endpoint and
updates the frontend reference which is using it.

(Bitbake rev: 1cc19c84ee97182f39eae0338c712f7a2b40a18d)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2015-08-04 22:46:36 +03:00
committed by Richard Purdie
parent 1e7707b63f
commit 951e40dd7d
4 changed files with 32 additions and 43 deletions

View File

@@ -406,8 +406,8 @@ function projectPageInit(ctx) {
var newRelease = releaseForm.find("option:selected").data('release');
$.getJSON(ctx.typeaheadUrl,
{ search: newRelease.id, type: "versionlayers" },
$.getJSON(ctx.testReleaseChangeUrl,
{ new_release_id: newRelease.id },
function(layers) {
if (layers.rows.length === 0){
/* No layers to change for this release */