Commit 4379d6be2063c00d8c00189a308cc9a556e94dd0

Authored by Alex Savenko
1 parent f90ab16b

test

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
www/js/main.js
... ... @@ -2074,7 +2074,7 @@ $(document).ready(function()
2074 2074 '<li class="clearfix">'+
2075 2075 '<a href="'+data[i]['alias']+'" title=""><img src="'+data[i]['cover']+'" height="100" alt="'+data[i]['title']+'" /></a>'+
2076 2076 '<a href="'+data[i]['alias']+'" class="search_result_title" title="'+data[i]['title']+'">'+data[i]['title']+'</a>';
2077   - if (data[i]['discounted_price'].length !== 0) {
  2077 + if (data[i]['discounted_price'].length !== undefined) {
2078 2078 html +=
2079 2079 '<p class="search_result_price">' +
2080 2080 'ціна від <span class="price" style="text-decoration: line-through;">'+data[i]['price2']+'</span> грн<br/>' +
... ...