rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 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)
})
})