summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/web
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-09-23 03:23:54 +0200
committerDylan William Hardison <dylan@hardison.net>2014-10-02 02:46:13 +0200
commitc034487bf62423265d0832197e0ff490f82330eb (patch)
treed5392377ca4b38c77b45dd62a3fed4c6edcec309 /extensions/MyDashboard/web
parent98284f0a6fcfaee9aee2c26e0ae0d07692a6ee84 (diff)
downloadbugzilla-c034487bf62423265d0832197e0ff490f82330eb.tar.gz
bugzilla-c034487bf62423265d0832197e0ff490f82330eb.tar.xz
Bug 1023405 - Shortcut for marking bugs as read
Diffstat (limited to 'extensions/MyDashboard/web')
-rw-r--r--extensions/MyDashboard/web/js/query.js15
-rw-r--r--extensions/MyDashboard/web/styles/mydashboard.css3
2 files changed, 17 insertions, 1 deletions
diff --git a/extensions/MyDashboard/web/js/query.js b/extensions/MyDashboard/web/js/query.js
index 82e2a531b..4a6b64157 100644
--- a/extensions/MyDashboard/web/js/query.js
+++ b/extensions/MyDashboard/web/js/query.js
@@ -99,6 +99,8 @@ YUI({
counter = counter + 1;
lastChangesCache = {};
+ Y.one('#query_markvisited').removeClass('bz_default_hidden');
+ Y.one('#query_markvisited_text').addClass('bz_default_hidden');
Y.one('#query_count_refresh').addClass('bz_default_hidden');
bugQueryTable.set('data', []);
bugQueryTable.render("#query_table");
@@ -238,6 +240,19 @@ YUI({
updateQueryTable(selected_value);
});
+ Y.one('#query_markvisited').on('click', function(e) {
+ var data = bugQueryTable.data;
+ var bug_ids = [];
+
+ Y.one('#query_markvisited').addClass('bz_default_hidden');
+ Y.one('#query_markvisited_text').removeClass('bz_default_hidden');
+
+ for (var i = 0, l = data.size(); i < l; i++) {
+ bug_ids.push(data.item(i).get('bug_id'));
+ }
+ YAHOO.bugzilla.bugUserLastVisit.update(bug_ids);
+ });
+
Y.one('#query_buglist').on('click', function(e) {
var data = bugQueryTable.data;
var ids = [];
diff --git a/extensions/MyDashboard/web/styles/mydashboard.css b/extensions/MyDashboard/web/styles/mydashboard.css
index 822c71076..2ce19d96b 100644
--- a/extensions/MyDashboard/web/styles/mydashboard.css
+++ b/extensions/MyDashboard/web/styles/mydashboard.css
@@ -47,7 +47,8 @@
width: 40%;
}
-.items_found, .refresh, .buglist {
+.items_found, .refresh, .buglist, .markvisited {
+
font-size: 80%;
}