mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
click_handlers: Remove click handler for closing stream settings.
The click handler for closing stream settings in click_handlers.js is removed as overlays.js contains common logic for closing all overlays. 'exports.close' in subs.js is removed and 'hashchange.exit_overlay' is used in 'overlays.open_overlay' call.
This commit is contained in:
@@ -423,12 +423,6 @@ exports.initialize = function () {
|
|||||||
$(".tooltip").remove();
|
$(".tooltip").remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#subscriptions_table").on("click", ".exit, #subscription_overlay", function (e) {
|
|
||||||
if ($(e.target).is(".exit, .exit-sign, #subscription_overlay, #subscription_overlay > .flex")) {
|
|
||||||
subs.close();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function do_render_buddy_list_tooltip(elem, title_data) {
|
function do_render_buddy_list_tooltip(elem, title_data) {
|
||||||
elem.tooltip({
|
elem.tooltip({
|
||||||
template: render_buddy_list_tooltip(),
|
template: render_buddy_list_tooltip(),
|
||||||
|
|||||||
@@ -674,7 +674,9 @@ exports.launch = function (section) {
|
|||||||
overlays.open_overlay({
|
overlays.open_overlay({
|
||||||
name: 'subscriptions',
|
name: 'subscriptions',
|
||||||
overlay: $("#subscription_overlay"),
|
overlay: $("#subscription_overlay"),
|
||||||
on_close: exports.close,
|
on_close: function () {
|
||||||
|
hashchange.exit_overlay();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
exports.change_state(section);
|
exports.change_state(section);
|
||||||
});
|
});
|
||||||
@@ -683,10 +685,6 @@ exports.launch = function (section) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.close = function () {
|
|
||||||
hashchange.exit_overlay();
|
|
||||||
};
|
|
||||||
|
|
||||||
exports.switch_rows = function (event) {
|
exports.switch_rows = function (event) {
|
||||||
const active_data = exports.get_active_data();
|
const active_data = exports.get_active_data();
|
||||||
let switch_row;
|
let switch_row;
|
||||||
|
|||||||
Reference in New Issue
Block a user