diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-09-23 03:23:54 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-10-02 02:46:13 +0200 |
commit | c034487bf62423265d0832197e0ff490f82330eb (patch) | |
tree | d5392377ca4b38c77b45dd62a3fed4c6edcec309 /extensions/MyDashboard/web/js | |
parent | 98284f0a6fcfaee9aee2c26e0ae0d07692a6ee84 (diff) | |
download | bugzilla-c034487bf62423265d0832197e0ff490f82330eb.tar.gz bugzilla-c034487bf62423265d0832197e0ff490f82330eb.tar.xz |
Bug 1023405 - Shortcut for marking bugs as read
Diffstat (limited to 'extensions/MyDashboard/web/js')
-rw-r--r-- | extensions/MyDashboard/web/js/query.js | 15 |
1 files changed, 15 insertions, 0 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 = []; |