mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: toastergui: remove xhr_projectedit and xhr_projectinfo URLs
This patch removes the xhr_projectedit and xhr_projectinfo URLs in favour of REST calls to the Project page. The project page takes now the POST requests to modify project settings. All usages of removed URLs are now changed to point to the project page, using the json format. The interface call specs have not modified. (Bitbake rev: 6ad3078bd2be1a8cda99040acaa9bb81d77f0013) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b1c91d06e0
commit
4a2a057130
@@ -34,13 +34,11 @@
|
||||
projectsUrl : "{% url 'all-projects' %}",
|
||||
{% if project.id %}
|
||||
xhrProjectDataTypeaheadUrl : "{% url 'xhr_datatypeahead' project.id %}",
|
||||
xhrProjectEditUrl : "{% url 'xhr_projectedit' project.id %}",
|
||||
projectPageUrl : "{% url 'project' project.id %}",
|
||||
projectName : "{{project.name}}",
|
||||
projectId : {{project.id}},
|
||||
{% else %}
|
||||
xhrProjectDataTypeaheadUrl : undefined,
|
||||
xhrProjectEditUrl : undefined,
|
||||
projectPageUrl : undefined,
|
||||
projectName : undefined,
|
||||
projectId : undefined,
|
||||
@@ -53,7 +51,6 @@
|
||||
$(document).ready(function () {
|
||||
/* Vars needed for base.js */
|
||||
var ctx = {};
|
||||
ctx.projectInfoUrl = "{% url 'xhr_projectinfo' %}";
|
||||
ctx.numProjects = {{projects|length}};
|
||||
ctx.currentUrl = "{{request.path|escapejs}}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user