diff options
| author | Sujith H <sujith.h@gmail.com> | 2016-07-19 07:57:09 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-11 00:09:28 +0100 |
| commit | b3fa98d4493cbc73562de988f483dab0b80eceaa (patch) | |
| tree | cebae089077f51efcda026e21fcfeda8950b0066 /bitbake/lib/toaster/toastergui/static | |
| parent | 331c1c6f0accf9dff89042a5f1dd5939e45963bf (diff) | |
| download | poky-b3fa98d4493cbc73562de988f483dab0b80eceaa.tar.gz | |
bitbake: toaster: improve the display when local dir is added
The helper text gets displayed accordingly when mouse
is hovered above the layers. If its a local directory
then no more branch is mentioned. Only directory path
is mentioned.
[YOCTO #9911]
(Bitbake rev: c1961c7844cab5b9c9144f3b4946197097f53e17)
Signed-off-by: Sujith H <sujith.h@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/projectpage.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js index df79849e37..b75b3e1869 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js | |||
| @@ -172,7 +172,12 @@ function projectPageInit(ctx) { | |||
| 172 | 172 | ||
| 173 | link.attr("href", layerObj.layerdetailurl); | 173 | link.attr("href", layerObj.layerdetailurl); |
| 174 | link.text(layerObj.name); | 174 | link.text(layerObj.name); |
| 175 | link.tooltip({title: layerObj.vcs_url + " | "+ layerObj.vcs_reference, placement: "right"}); | 175 | |
| 176 | if (layerObj.local_source_dir) { | ||
| 177 | link.tooltip({title: layerObj.local_source_dir, placement: "right"}); | ||
| 178 | } else { | ||
| 179 | link.tooltip({title: layerObj.vcs_url + " | "+ layerObj.vcs_reference, placement: "right"}); | ||
| 180 | } | ||
| 176 | 181 | ||
| 177 | var trashItem = projectLayer.children("span"); | 182 | var trashItem = projectLayer.children("span"); |
| 178 | trashItem.click(function (e) { | 183 | trashItem.click(function (e) { |
