mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2025-12-08 20:39:02 +00:00
25 lines
672 B
JavaScript
25 lines
672 B
JavaScript
(function($) {
|
|
var dismissWaltzNotification;
|
|
dismissWaltzNotification = function(e) {
|
|
var $el, data;
|
|
if (e) {
|
|
e.preventDefault();
|
|
}
|
|
$el = $('.waltz-notification');
|
|
data = {};
|
|
$el.find('input').each(function() {
|
|
return data[$(this).attr('name')] = $(this).val();
|
|
});
|
|
$el.remove();
|
|
return $.post(ajaxurl + '?action=clef_dismiss_waltz', data);
|
|
};
|
|
return $(document).ready(function() {
|
|
setTimeout(function() {
|
|
if (window.waltzIsInstalled) {
|
|
return dismissWaltzNotification();
|
|
}
|
|
}, 1000);
|
|
return $('.waltz-notification .next').click(dismissWaltzNotification);
|
|
});
|
|
}).call(this, jQuery);
|