This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
studio-2013/wp-content/plugins/wordpress-seo/js/wp-seo-export.js
T
2015-05-01 21:20:47 +02:00

22 lines
789 B
JavaScript

/* jshint strict:true */
/* global ajaxurl */
/* global wpseo_export_nonce */
jQuery(document).ready(function ($) {
'use strict';
$('#export-button').click(function () {
$.post(ajaxurl, {
action: 'wpseo_export',
_wpnonce: wpseo_export_nonce,
include_taxonomy: $('#include_taxonomy_meta').is(':checked')
}, function (resp) {
resp = JSON.parse(resp);
var dclass = 'error';
if (resp.status === 'success') {
dclass = 'updated';
}
$('#wpseo-title').append('<div class="' + dclass + ' settings-error"><p><strong>' + resp.msg + '</strong></p></div>');
}
);
event.preventDefault();
});
});