mirror of https://github.com/zulip/zulip.git
muting: Simplify dismiss() method.
This commit is contained in:
parent
4baa65f38a
commit
39cdc926a5
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue