mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
muting: Simplify dismiss() method.
This commit is contained in:
@@ -49,6 +49,10 @@ exports.build_feedback_widget = function () {
|
||||
}
|
||||
}, 100);
|
||||
|
||||
self.dismiss = function () {
|
||||
animate.fadeOut();
|
||||
};
|
||||
|
||||
self.show = function (opts) {
|
||||
if (!opts.populate) {
|
||||
blueslip.error('programmer needs to supply populate callback.');
|
||||
@@ -95,13 +99,6 @@ exports.build_feedback_widget = function () {
|
||||
});
|
||||
};
|
||||
|
||||
self.dismiss = function () {
|
||||
var $container = $("#feedback_container");
|
||||
if ($container) {
|
||||
$container.fadeOut(500).removeClass("show");
|
||||
}
|
||||
};
|
||||
|
||||
return self;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user