1
0
mirror of synced 2024-11-29 08:26:09 +03:00
magento-module/view/adminhtml/templates/system/config/button.phtml

27 lines
577 B
PHTML
Raw Normal View History

2017-05-31 15:24:46 +03:00
<script>
require([
'jquery',
'prototype',
], function(jQuery){
function syncronize() {
params = {
};
new Ajax.Request('<?php echo $block->getAjaxSyncUrl() ?>', {
loaderArea: false,
asynchronous: true,
parameters: params,
onSuccess: function(transport) {
var response = JSON.parse(transport.responseText);
}
});
}
jQuery('#order_button').click(function () {
syncronize();
});
});
</script>
<?php echo $block->getButtonHtml() ?>