diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-12-09 16:52:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-12 20:44:54 +0000 |
commit | 23ad2a8ca08da30bd5ef1e01860021ced1967c07 (patch) | |
tree | 732783cdc34b1f3ce19363dbb96746c624d631cc /bitbake/lib/toaster/toastergui/templates/importlayer.html | |
parent | 97ff2c0091c654bf01bc4b0809a6a664ad6c579c (diff) | |
download | poky-23ad2a8ca08da30bd5ef1e01860021ced1967c07.tar.gz |
bitbake: toaster: importlayer Add git revision typeahead to that input field
Add the front end mechanism to load the typeahead for the git revision
field on importing a layer.
Also fix one indentation issue and update the js test.
(Bitbake rev: 28114be42174095b812a93d4b5a0e01e953d74f8)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/importlayer.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/importlayer.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/importlayer.html b/bitbake/lib/toaster/toastergui/templates/importlayer.html index bd507b5677..afbeb94d42 100644 --- a/bitbake/lib/toaster/toastergui/templates/importlayer.html +++ b/bitbake/lib/toaster/toastergui/templates/importlayer.html | |||
@@ -14,6 +14,7 @@ | |||
14 | $(document).ready(function (){ | 14 | $(document).ready(function (){ |
15 | var ctx = { | 15 | var ctx = { |
16 | xhrLayerUrl : "{% url 'xhr_layer' project.id %}", | 16 | xhrLayerUrl : "{% url 'xhr_layer' project.id %}", |
17 | xhrGitRevTypeAheadUrl : "{% url 'xhr_gitrevtypeahead' %}", | ||
17 | }; | 18 | }; |
18 | 19 | ||
19 | try { | 20 | try { |
@@ -112,8 +113,10 @@ | |||
112 | Git revision | 113 | Git revision |
113 | <span class="glyphicon glyphicon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span> | 114 | <span class="glyphicon glyphicon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span> |
114 | </label> | 115 | </label> |
115 | <input type="text" class="form-control" id="layer-git-ref" required> | 116 | <span style="display: block"> |
117 | <input type="text" class="form-control" id="layer-git-ref" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" required> | ||
116 | <span class="help-inline" style="display:none;" id="invalid-layer-revision-hint"></span> | 118 | <span class="help-inline" style="display:none;" id="invalid-layer-revision-hint"></span> |
119 | </span> | ||
117 | </div> | 120 | </div> |
118 | </fieldset> | 121 | </fieldset> |
119 | 122 | ||