Add expectOne() check when clicking to expand/collapse

(imported from commit 7224f618f49de82bd41a5a1f4b0677cf490b5856)
This commit is contained in:
Steve Howell 2013-09-11 13:24:16 -04:00
parent 4bec9dced9
commit fcc268b44f

View File

@ -1012,11 +1012,11 @@ $(function () {
if (feature_flags.summarize_read_while_narrowed) {
$("#main_div").on("click", ".summary_row .icon-vector-expand-alt", function (e) {
exports.expand_summary_row($(e.target).closest('.summary_row'));
exports.expand_summary_row($(e.target).closest('.summary_row').expectOne());
e.stopImmediatePropagation();
});
$("#main_div").on("click", ".recipient_row .icon-vector-collapse-alt", function (e) {
exports.collapse_recipient_group($(e.target).closest('.recipient_row'));
exports.collapse_recipient_group($(e.target).closest('.recipient_row').expectOne());
e.stopImmediatePropagation();
});
}