This commit is contained in:
Rachit Bhargava
2024-01-10 11:53:33 -05:00
parent 83d223b0df
commit 054b4fffc9
16481 changed files with 0 additions and 3473867 deletions

View File

@@ -1,49 +0,0 @@
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)
})
})