Browse Source

[UPDT] Sep 20 : Bug fix 'theme_boec'

pull/219/head
AjmalCybro 3 years ago
parent
commit
6a22e52d4a
  1. 2
      theme_boec/__manifest__.py
  2. 7
      theme_boec/static/src/js/deal_week.js

2
theme_boec/__manifest__.py

@ -25,7 +25,7 @@
'summary': 'Theme Boec is a new kind of Theme. '
'The theme is a very user-friendly and is suitable for your eCommerce website with blog.',
'category': 'Theme/eCommerce',
'version': '15.0.1.0.0',
'version': '15.0.1.0.1',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',

7
theme_boec/static/src/js/deal_week.js

@ -22,14 +22,17 @@ odoo.define('theme_boec.deal_week',function(require){
setInterval(function () {
var current_date = new Date().getTime();
var seconds_left = (end_date - current_date) / 1000;
var countdown_div = $("#countdown")[0];
days = parseInt(seconds_left / 86400);
seconds_left = seconds_left % 86400;
hours = parseInt(seconds_left / 3600);
seconds_left = seconds_left % 3600;
minutes = parseInt(seconds_left / 60);
seconds = parseInt(seconds_left % 60);
countdown.innerHTML = '<span class="days">' + days + ' <label>Days</label></span> <span class="hours">' + hours + ' <label>Hours</label></span> <span class="minutes">'
+ minutes + ' <label>Minutes</label></span> <span class="seconds">' + seconds + ' <label>Seconds</label></span>';
if(countdown_div){
countdown.innerHTML = '<span class="days">' + days + ' <label>Days</label></span> <span class="hours">' + hours + ' <label>Hours</label></span> <span class="minutes">'
+ minutes + ' <label>Minutes</label></span> <span class="seconds">' + seconds + ' <label>Seconds</label></span>';
}
}, 1000);
}
})

Loading…
Cancel
Save