diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-03-17 04:53:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-05 14:55:28 +0100 |
commit | 6831b7ad16e11ed0f3bf24a0cef5ba7612a9bae0 (patch) | |
tree | a6915c0b98353b456e9e6ac2e9d6d64327cd9555 /bitbake/lib/toaster/toastergui/templates/tasks.html | |
parent | 53b781f41e71c359b66603a9786cf30cbaf73a65 (diff) | |
download | ast2050-yocto-poky-6831b7ad16e11ed0f3bf24a0cef5ba7612a9bae0.zip ast2050-yocto-poky-6831b7ad16e11ed0f3bf24a0cef5ba7612a9bae0.tar.gz |
bitbake: toaster: Remove html validation errors in tasks.html
Remove the duplicated class attribute and the name
attribute.
Also, make sure that the row blue highlight works
without the name attribute when you land on the
tasks table after clicking the order link in a
task details page.
The commit also fixes a typo in default.css.
[YOCTO #6033]
(Bitbake rev: 471234f1ab1dbcd736a892720e99a305363db5ff)
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/tasks.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/tasks.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index d68a31a..77d38b0 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html @@ -75,7 +75,7 @@ {% include "basetable_top.html" %} {% for task in objects %} - <tr {{ task|task_color }} class="flash" id="{{task.order}}" name="{{task.order}}"> + <tr {{ task|task_color }} id="{{task.order}}"> <td class="order"> <a href="{%url "task" build.pk task.pk%}">{{task.order}}</a> </td> @@ -117,4 +117,17 @@ {% endif %} {# objects.paginator.count #} {% endif %} {# empty #} </div> + +<script type="text/javascript"> + + $(document).ready(function() { + // enable blue hightlight animation for the order link + if (location.href.search('#') > -1) { + var task_order = location.href.split('#')[1]; + $("#" + task_order).addClass("highlight"); + } + }); + +</script> + {% endblock %} |