19 lines
492 B
JavaScript
19 lines
492 B
JavaScript
function setCookie (name, value, expires, path, domain, secure) {
|
|
document.cookie = name + "=" + escape(value) +
|
|
((expires) ? "; expires=" + expires : "") +
|
|
((path) ? "; path=" + path : "") +
|
|
((domain) ? "; domain=" + domain : "") +
|
|
((secure) ? "; secure" : "");
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
if ($(".alert").size()) {
|
|
$(".alert").alert()
|
|
}
|
|
|
|
$('#close-alert').click(function () {
|
|
setCookie("flash_notify_hash", FLASH_HASH_ID, FLASH_EXPIRES_AT);
|
|
});
|
|
});
|
|
|