From 1c61235d64f61221056f6d523e0ed35e96f78601 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 3 Oct 2024 10:31:44 +0300 Subject: [PATCH] =?utf8?q?[ERP-155]=20=D0=BF=D0=BE=D0=B4=D1=81=D0=B2=D0=B5?= =?utf8?q?=D1=82=D0=BA=D0=B0=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=B2?= =?utf8?q?=D1=88=D0=B8=D1=85=D1=81=D1=8F=20=D0=BF=D0=BE=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/marketplace/priority.php | 4 ++-- erp24/web/js/marketplace/priority.js | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5