muting: Simplify dismiss() method.

This commit is contained in:
Steve Howell 2018-12-21 00:35:24 +00:00 committed by Tim Abbott
parent 4baa65f38a
commit 39cdc926a5
1 changed files with 4 additions and 7 deletions

View File

@ -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;
};