Convert CofeeScript to JavaScript
Compiled using `coffee -c` with CoffeeScript 1.12.6.
This commit is contained in:
20
app/assets/javascripts/ie_alert.js
Normal file
20
app/assets/javascripts/ie_alert.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// Generated by CoffeeScript 1.12.6
|
||||
(function() {
|
||||
"use strict";
|
||||
App.IeAlert = {
|
||||
set_cookie_and_hide: function(event) {
|
||||
event.preventDefault();
|
||||
$.cookie("ie_alert_closed", "true", {
|
||||
path: "/",
|
||||
expires: 365
|
||||
});
|
||||
return $(".ie-callout").remove();
|
||||
},
|
||||
initialize: function() {
|
||||
return $(".ie-callout-close-js").on("click", function(event) {
|
||||
return App.IeAlert.set_cookie_and_hide(event);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}).call(this);
|
||||
Reference in New Issue
Block a user