aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-03-17 04:53:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-05 14:55:18 +0100
commit471234f1ab1dbcd736a892720e99a305363db5ff (patch)
tree68fefdcf4e862bfb44170051912db6c4b45ca5cf /lib
parentfc7a74e7961775b5d7ff25298abed10138d24dc9 (diff)
downloadbitbake-contrib-471234f1ab1dbcd736a892720e99a305363db5ff.tar.gz
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] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/toaster/toastergui/static/css/default.css2
-rw-r--r--lib/toaster/toastergui/static/js/main.js2
-rw-r--r--lib/toaster/toastergui/templates/tasks.html15
3 files changed, 16 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css
index 0b53718a3..b4345da3d 100644
--- a/lib/toaster/toastergui/static/css/default.css
+++ b/lib/toaster/toastergui/static/css/default.css
@@ -103,7 +103,7 @@ select { width: auto; }
.well > .lead, .alert .lead { margin-bottom: 0px; }
.no-results { margin: 10px 0; }
.task-name { margin-left: 7px; }
-.icon-hand-right {color: #ccccc; }
+.icon-hand-right {color: #CCCCCC; }
.help-inline { margin: 5px; }
.hero-unit { margin: 20px 0 30px; }
.hero-unit > .close { font-size:40px; }
diff --git a/lib/toaster/toastergui/static/js/main.js b/lib/toaster/toastergui/static/js/main.js
index 7f897d2a9..eef6b468f 100644
--- a/lib/toaster/toastergui/static/js/main.js
+++ b/lib/toaster/toastergui/static/js/main.js
@@ -107,5 +107,5 @@ $(document).ready(function() {
if (location.href.search('#warnings') > -1) {
$('#collapse-warnings').addClass('in');
}
-
+
});
diff --git a/lib/toaster/toastergui/templates/tasks.html b/lib/toaster/toastergui/templates/tasks.html
index d68a31a24..77d38b00d 100644
--- a/lib/toaster/toastergui/templates/tasks.html
+++ b/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 %}