diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/importlayer.html | 21 |
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> |