Skip to content

Commit

Permalink
#95443 Исправляем работу кнопки "Выгрузка служб доставок" (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyslik authored Apr 22, 2024
1 parent cbddd69 commit c1f59ea
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 33 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2024-04-18 v.6.5.14
- Исправление работы кнопки "Выгрузка служб доставок"

## 2024-04-03 v.6.5.13
- Исправление присваивания номера заказа к платежу при синхронизации с CRM

Expand Down
2 changes: 1 addition & 1 deletion intaro.retailcrm/description.ru
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Исправление присваивания номера заказа к платежу при синхронизации с CRM
- Исправление работы кнопки "Выгрузка служб доставок"
4 changes: 2 additions & 2 deletions intaro.retailcrm/install/version.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

$arModuleVersion = [
'VERSION' => '6.5.13',
'VERSION_DATE' => '2024-04-03 10:30:00'
'VERSION' => '6.5.14',
'VERSION_DATE' => '2024-04-18 11:15:00'
];
59 changes: 29 additions & 30 deletions intaro.retailcrm/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -1779,38 +1779,37 @@ function updateAddressList()
return true;
});

});
$('input[name="update-delivery-services"]').on('click', function() {
BX.showWait();
var updButton = this;
// hide next step button
$(updButton).css('opacity', '0.5').attr('disabled', 'disabled');

var handlerUrl = $(this).parents('form').attr('action');
var data = 'ajax=1';

$.ajax({
type: 'POST',
url: handlerUrl,
data: data,
dataType: 'json',
success: function(response) {
BX.closeWait();
$(updButton).css('opacity', '1').removeAttr('disabled');

if (!response.success)
alert('<?php echo GetMessage('MESS_1'); ?>');
},
error: function () {
BX.closeWait();
$(updButton).css('opacity', '1').removeAttr('disabled');

alert('<?php echo GetMessage('MESS_2'); ?>');
}
});

$('input[name="update-delivery-services"]').on('click', function() {
BX.showWait();
var updButton = this;
// hide next step button
$(updButton).css('opacity', '0.5').attr('disabled', 'disabled');

var handlerUrl = $(this).parents('form').attr('action');
var data = 'ajax=1';

$.ajax({
type: 'POST',
url: handlerUrl,
data: data,
dataType: 'json',
success: function(response) {
BX.closeWait();
$(updButton).css('opacity', '1').removeAttr('disabled');

if (!response.success)
alert('<?php echo GetMessage('MESS_1'); ?>');
},
error: function () {
BX.closeWait();
$(updButton).css('opacity', '1').removeAttr('disabled');

alert('<?php echo GetMessage('MESS_2'); ?>');
}
return false;
});

return false;
});
</script>
<style type="text/css">
Expand Down

0 comments on commit c1f59ea

Please sign in to comment.