1
0
mirror of synced 2024-11-25 22:46:07 +03:00
magento-module/view/adminhtml/templates/system/config/button.phtml
Alex Lushpai f4000c9874 v2.0
2017-05-31 15:24:46 +03:00

27 lines
577 B
PHTML

<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() ?>