summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2014-12-11 14:17:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-18 10:24:08 +0000
commitbb83fccb4b4dbb1fbadc7c1cb1f51a39840c9f95 (patch)
treea3d58f2a4feb34fb352ed3eb10a2899333677ce7 /bitbake
parent641c50d79b58e07c58acff0e0010d5177bebbcf5 (diff)
downloadpoky-bb83fccb4b4dbb1fbadc7c1cb1f51a39840c9f95.tar.gz
bitbake: toaster: importlayer Tidy up the page initialisation
Tidy up the page initialisation and change the error logging so that it's consistent with other pages. (Bitbake rev: 3a5b78af4f3cab203824d933a73e82a41ab377e3) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/importlayer.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/importlayer.html b/bitbake/lib/toaster/toastergui/templates/importlayer.html
index c92e55257b..a4d8ee1ebd 100644
--- a/bitbake/lib/toaster/toastergui/templates/importlayer.html
+++ b/bitbake/lib/toaster/toastergui/templates/importlayer.html
@@ -12,19 +12,20 @@
12 <script src="{% static 'js/importlayer.js' %}"></script> 12 <script src="{% static 'js/importlayer.js' %}"></script>
13 <script> 13 <script>
14 $(document).ready(function (){ 14 $(document).ready(function (){
15 var ctx = {}; 15 var ctx = {
16 ctx.xhrDataTypeaheadUrl = "{% url 'xhr_datatypeahead' %}"; 16 xhrDataTypeaheadUrl : "{% url 'xhr_datatypeahead' %}",
17 ctx.layerDetailsUrl = "{% url 'layerdetails' %}"; 17 layerDetailsUrl : "{% url 'layerdetails' %}",
18 ctx.xhrImportLayerUrl = "{% url 'xhr_importlayer' %}"; 18 xhrImportLayerUrl : "{% url 'xhr_importlayer' %}",
19 ctx.xhrEditProjectUrl = "{% url 'xhr_projectedit' project.id %}"; 19 xhrEditProjectUrl : "{% url 'xhr_projectedit' project.id %}",
20 ctx.projectPageUrl = "{% url 'project' project.id %}"; 20 projectPageUrl : "{% url 'project' project.id %}",
21 ctx.projectId = {{project.id}}; 21 projectId : {{project.id}}
22 };
22 23
23 try { 24 try {
24 importLayerPageInit(ctx); 25 importLayerPageInit(ctx);
25 } catch(e) { 26 } catch (e) {
26 document.write(e.stack); 27 document.write("Sorry, An error has occurred loading this page");
27 console.log(e); 28 console.warn(e);
28 } 29 }
29 }); 30 });
30 </script> 31 </script>