diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-01-20 12:55:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-23 11:33:52 +0000 |
commit | 8e3be3f268d96f65af8d6bf62162f71783afa478 (patch) | |
tree | 7d21a13ddde19b0f8930606f7d176e9cab9c0bdf /bitbake/lib/toaster | |
parent | bdbc37f5c636d0dbb58bbe4c6d0a026216cb5a3c (diff) | |
download | poky-8e3be3f268d96f65af8d6bf62162f71783afa478.tar.gz |
bitbake: toaster: newproject default release selection fix
This patch fixes the default project release selection to
obey the DEFAULT_RELEASE name set in ToasterSettings.
[YOCTO #7035]
(Bitbake rev: bcd7ba013b973d3b3ac1e0845acf60b80cb227c2)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/newproject.html | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html index 512a8fa68f..0265564762 100644 --- a/bitbake/lib/toaster/toastergui/templates/newproject.html +++ b/bitbake/lib/toaster/toastergui/templates/newproject.html | |||
@@ -22,18 +22,24 @@ | |||
22 | <i class="icon-question-sign get-help" title="The version of the build system you want to use"></i> | 22 | <i class="icon-question-sign get-help" title="The version of the build system you want to use"></i> |
23 | </label> | 23 | </label> |
24 | <select name="projectversion" id="projectversion"> | 24 | <select name="projectversion" id="projectversion"> |
25 | {% for release in releases %} | 25 | {% for release in releases %} |
26 | <option value="{{release.id}}"{%if projectversion == release.id %} selected{%endif%}>{{release.description}}</option> | 26 | <option value="{{release.id}}" |
27 | {% endfor %} | 27 | {%if defaultbranch == release.name %} |
28 | selected | ||
29 | {%endif%} | ||
30 | |||
31 | >{{release.description}}</option> | ||
32 | {% endfor %} | ||
28 | </select> | 33 | </select> |
29 | {% for release in releases %} | 34 | {% for release in releases %} |
30 | <div class="row-fluid helptext" id="description-{{release.id}}" style="display: none"> | 35 | <div class="row-fluid helptext" id="description-{{release.id}}" style="display: none"> |
31 | <span class="help-block span5">{{release.helptext|safe}}</span> | 36 | <span class="help-block span5">{{release.helptext|safe}}</span> |
32 | </div> | 37 | </div> |
33 | {% endfor %} | 38 | {% endfor %} |
34 | {% else %} | 39 | {% else %} |
35 | <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> | 40 | <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> |
36 | {% endif %} | 41 | {% endif %} |
42 | |||
37 | </fieldset> | 43 | </fieldset> |
38 | 44 | ||
39 | <div class="form-actions"> | 45 | <div class="form-actions"> |
@@ -82,11 +88,11 @@ | |||
82 | $("#description-" + selected_release).show(); | 88 | $("#description-" + selected_release).show(); |
83 | 89 | ||
84 | 90 | ||
85 | $('select').change(function(){ | 91 | $('select').change(function(){ |
86 | var new_release = $('select').val(); | 92 | var new_release = $('select').val(); |
87 | $(".helptext").hide(); | 93 | $(".helptext").hide(); |
88 | $('#description-' + new_release).fadeIn(); | 94 | $('#description-' + new_release).fadeIn(); |
89 | }); | 95 | }); |
90 | }) | 96 | }) |
91 | </script> | 97 | </script> |
92 | </div> | 98 | </div> |