Files
grecia/app/assets/javascripts/ie_alert.js
Javi Martín ec5af1f1bc Remove unnecessary return statements
These statements were automatically added by CoffeeScript.

I'm only removing the obvious cases; there might be more cases where the
`return` statement isn't necessary.
2019-09-11 14:03:24 +02:00

20 lines
431 B
JavaScript

(function() {
"use strict";
App.IeAlert = {
set_cookie_and_hide: function(event) {
event.preventDefault();
$.cookie("ie_alert_closed", "true", {
path: "/",
expires: 365
});
$(".ie-callout").remove();
},
initialize: function() {
$(".ie-callout-close-js").on("click", function(event) {
App.IeAlert.set_cookie_and_hide(event);
});
}
};
}).call(this);