first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
(function ($) {
$('body').on('click', '.brizy-public-update-button', function (e) {
e.preventDefault()
var xhr = false
var url = Brizy_Public_Data.url
var action = Brizy_Public_Data.action
var id = Brizy_Public_Data.id
if (xhr) {
return
}
$(this).addClass('loading')
xhr = true
jQuery.post(url, {
action: action,
id: id
}).always(function () {
xhr = false
$(this).removeClass('loading')
})
})
})(jQuery)