first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/*globals jQuery, ajaxurl, wpml_notice_information*/
|
||||
|
||||
function wpml_dismiss_taxonomy_translation_notice(element) {
|
||||
"use strict";
|
||||
var notice = jQuery(element);
|
||||
jQuery.ajax({
|
||||
url: ajaxurl,
|
||||
type: 'POST',
|
||||
data: {
|
||||
action: 'otgs-dismiss-notice',
|
||||
id: wpml_notice_information.notice_id,
|
||||
group: wpml_notice_information.notice_group,
|
||||
nonce: notice.data('nonce')
|
||||
},
|
||||
success: function () {
|
||||
notice.parents('.otgs-notice').remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user