This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Capybara.add_selector :record do | |
xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) } | |
match { |record| record.is_a?(ActiveRecord::Base) } | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var clickOverrides = function(){ | |
// Automatically mark ALL as read and scroll to it | |
// when clicking on a channel (stared or normal) | |
$('#channel-list, #starred-list').on('click',function(){ | |
TS.ui.forceMarkAllRead(); | |
TS.ui.scrollMsgsSoFirstUnreadMsgIsInView(); | |
}); | |
}; |