diff options
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 = []; |