From: Alexander Smirnov Date: Thu, 3 Oct 2024 07:31:44 +0000 (+0300) Subject: [ERP-155] подсветка изменившихся полей X-Git-Tag: 1.6~49^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=1c61235d64f61221056f6d523e0ed35e96f78601;p=erp24_rep%2Fyii-erp24%2F.git [ERP-155] подсветка изменившихся полей --- diff --git a/erp24/views/marketplace/priority.php b/erp24/views/marketplace/priority.php index 51904f98..31a9c4a2 100644 --- a/erp24/views/marketplace/priority.php +++ b/erp24/views/marketplace/priority.php @@ -32,8 +32,8 @@ $this->registerJsFile('/js/marketplace/priority.js', ['position' => \yii\web\Vie $reminderKoef = $marketplacePriorityMap[$guid]->reminder_koef ?? 2; $minimalQuantity = $marketplacePriorityMap[$guid]->minimal_quantity ?? 2; ?> - - + + diff --git a/erp24/web/js/marketplace/priority.js b/erp24/web/js/marketplace/priority.js index bd6cae28..000f801e 100644 --- a/erp24/web/js/marketplace/priority.js +++ b/erp24/web/js/marketplace/priority.js @@ -13,7 +13,8 @@ $(document).ready(() => { }); }) -function ajaxSavePrameter(guid, paramName, value) { +function ajaxSavePrameter(guid, paramName, self) { + var value = self.value; $.ajax({ url: window.location.href, method: 'post', @@ -21,6 +22,10 @@ function ajaxSavePrameter(guid, paramName, value) { data: {guid, paramName, value, [param22]: token22}, success: function(data) { console.log(data); + self.style.background = 'lightgreen'; + setTimeout(() => { + self.style.background = 'white'; + }, 1000) }, }); } \ No newline at end of file