mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2025-12-08 20:39:02 +00:00
Initial commit. State 04.2021.
This commit is contained in:
24
wp-content/plugins/wpclef/assets/dist/js/waltz_notification.js
vendored
Normal file
24
wp-content/plugins/wpclef/assets/dist/js/waltz_notification.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
(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);
|
||||
Reference in New Issue
Block a user