Merged in feature/plugins-update (pull request #9)

wp plugin updates from pantheon

* wp plugin updates from pantheon
This commit is contained in:
Tony Volpe
2023-12-15 18:08:21 +00:00
parent 28c21bf9b1
commit 779393381f
577 changed files with 154305 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
jQuery(document).ready(function () {
jQuery("#sendUrl").click(function (e) {
e.preventDefault()
var postID = jQuery("#sendUrl").data("post_id")
console.log(postID)
jQuery.ajax({
url: ajaxurl,
type: "POST",
data: {
action: "relevanssi_send_url",
post_id: postID,
security: admin_pdf_data.send_pdf_nonce,
},
dataType: "json",
complete: function (data) {
console.log(data)
location.reload()
},
})
})
jQuery("#sendPdf").click(function (e) {
e.preventDefault()
var postID = jQuery("#sendPdf").data("post_id")
console.log(postID)
jQuery.ajax({
url: ajaxurl,
type: "POST",
data: {
action: "relevanssi_send_pdf",
post_id: postID,
security: admin_pdf_data.send_pdf_nonce,
},
dataType: "json",
complete: function (data) {
console.log(data)
location.reload()
},
})
})
jQuery("textarea#relevanssi_pdf_content").focus(function () {
jQuery(this).animate({ rows: 40, cols: 120 }, 500)
})
jQuery("textarea#relevanssi_pdf_content").focusout(function () {
jQuery(this).animate({ rows: 4, cols: 80 }, 500)
})
})