no wp
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user