From 4e8af0eb81274bfe2e1dc4ce9167f53dc78f1b39 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 31 Jan 2017 13:49:10 +0200 Subject: [PATCH] ru version of discounted search --- www/js/main_ru.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/www/js/main_ru.js b/www/js/main_ru.js index 0c1f99e..33b42b0 100644 --- a/www/js/main_ru.js +++ b/www/js/main_ru.js @@ -2029,8 +2029,18 @@ $(document).ready(function() html += '
  • '+ ''+data[i]['title']+''+ - ''+data[i]['title']+''+ - '

    цена от '+data[i]['price2']+' грн

    '+ + ''+data[i]['title']+''; + if (data[i]['discounted_price'] !== undefined) { + html += + '

    ' + + 'цена от '+data[i]['price2']+' грн
    ' + + ''+data[i]['discounted_price']+' грн'+ + '

    '; + } + else { + html += '

    цена от '+data[i]['price2']+' грн

    '; + } + html += '
  • '; } -- libgit2 0.21.4