Skip to content

Commit

Permalink
fixes around inline message view
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Sep 21, 2017
1 parent 9e15279 commit 8572e1b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions modules/core/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ function Message_List() {
};

this.set_tab_index = function() {
var msg_rows = Hm_Utils.tbody();
var msg_rows = Hm_Utils.rows();
var count = 1;
$('tr', msg_rows).each(function() {
msg_rows.each(function() {
$(this).attr('tabindex', count);
count++;
});
Expand Down Expand Up @@ -1223,7 +1223,7 @@ var Hm_Utils = {
}
},
rows: function() {
return $('.message_table_body > tr');
return $('.message_table_body > tr').not('.inline_msg');
},
tbody: function() {
return $('.message_table_body');
Expand Down
4 changes: 2 additions & 2 deletions modules/feeds/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ var feeds_combined_content = function(id) {
};

var set_combined_feeds_state = function() {
var data = $('.message_table tbody');
var data = Hm_Message_List.filter_list();
data.find('*[style]').attr('style', '');
Hm_Utils.save_to_local_storage('formatted_feed_data', data.html());
$('input[type=checkbox]').click(function() {
Expand Down Expand Up @@ -184,7 +184,7 @@ var display_feed_list = function(res) {
var ids = [res.feed_server_ids];
Hm_Message_List.update(ids, res.formatted_message_list, 'feeds');
var key = 'feeds_'+res.feed_server_ids;
var data = $('.message_table tbody');
var data = Hm_Message_List.filter_list();
data.find('*[style]').attr('style', '');
$('.total').text($('.message_table tbody tr').length);
Hm_Utils.save_to_local_storage(key, data.html());
Expand Down
2 changes: 1 addition & 1 deletion modules/github/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var display_github_data = function(res) {
var path = hm_list_path();
Hm_Message_List.update([res.github_server_id], res.formatted_message_list, 'github');
if (path != 'github_all') {
var data = $('.message_table tbody');
var data = Hm_Message_List.filter_list();
data.find('*[style]').attr('style', '');
Hm_Utils.save_to_local_storage(path, data.html());
}
Expand Down
2 changes: 1 addition & 1 deletion modules/pop3/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var display_pop3_mailbox = function(res) {
$('.page_links').html(res.page_links);
}
var key = 'pop3_'+Hm_Utils.get_url_page_number()+'_'+hm_list_path();
var data = $('.message_table tbody');
var data = Hm_Message_List.filter_list();
data.find('*[style]').attr('style', '');
Hm_Utils.save_to_local_storage(key, data.html());
};
Expand Down

0 comments on commit 8572e1b

Please sign in to comment.