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.
20 lines
431 B
JavaScript
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);
|