Skip to content
Snippets Groups Projects
Commit 4e9512c4 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

init

parent 35ba5983
No related branches found
No related tags found
No related merge requests found
Pipeline #6349 passed with warnings
alert(1); jQuery( document ).on( 'click', '.notice-dismiss', function() {
var notice_name = jQuery(this).closest('div.notice').data('notice-name');
console.log(notice_name);
if ('' !== notice_name) {
jQuery.ajax({
url: ajaxurl,
type: 'post',
data: {
action: 'wpdesk_notice_dismiss',
notice_name: notice_name
},
success: function (response) {
}
});
}
});
alert(1); jQuery(document).on("click",".notice-dismiss",function(){var a=jQuery(this).closest("div.notice").data("notice-name");console.log(a);if(""!==a){jQuery.ajax({url:ajaxurl,type:"post",data:{action:"wpdesk_notice_dismiss",notice_name:a},success:function(b){}})}});
\ No newline at end of file \ No newline at end of file
...@@ -17,7 +17,7 @@ class AjaxHandler implements HookablePluginDependant ...@@ -17,7 +17,7 @@ class AjaxHandler implements HookablePluginDependant
const POST_FIELD_NOTICE_NAME = 'notice-name'; const POST_FIELD_NOTICE_NAME = 'notice-name';
const SCRIPTS_VERSION = '1'; const SCRIPTS_VERSION = '2';
const SCRIPT_HANDLE = 'wpdesk_notice'; const SCRIPT_HANDLE = 'wpdesk_notice';
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment