Skip to content

Commit

Permalink
Update history.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc committed Aug 4, 2016
1 parent 2052372 commit 945e435
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions desktop/js/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
}

function initHistoryTrigger() {
$('#sel_chartType').on('change', function () {
$('#sel_chartType').off('change').on('change', function () {
$('.li_history[data-cmd_id=' + lastId + ']').removeClass('active');
addChart(lastId,0);
jeedom.cmd.save({
Expand All @@ -117,7 +117,7 @@ function initHistoryTrigger() {
}
});
});
$('#sel_groupingType').on('change', function () {
$('#sel_groupingType').off('change').on('change', function () {
$('.li_history[data-cmd_id=' + lastId + ']').removeClass('active');
addChart(lastId,0);
jeedom.cmd.save({
Expand All @@ -130,7 +130,7 @@ function initHistoryTrigger() {
}
});
});
$('#cb_derive').on('change', function () {
$('#cb_derive').off('change').on('change', function () {
$('.li_history[data-cmd_id=' + lastId + ']').removeClass('active');
addChart(lastId,0);
jeedom.cmd.save({
Expand All @@ -143,7 +143,7 @@ function initHistoryTrigger() {
}
});
});
$('#cb_step').on('change', function () {
$('#cb_step').off('change').on('change', function () {
$('.li_history[data-cmd_id=' + lastId + ']').removeClass('active');
addChart(lastId,0);
jeedom.cmd.save({
Expand All @@ -158,7 +158,7 @@ function initHistoryTrigger() {
});
}

$('#bt_validChangeDate').on('click',function(){
$('#bt_validChangeDate').off('change').on('click',function(){
$(jeedom.history.chart['div_graph'].chart.series).each(function(i, serie){
if(!isNaN(serie.options.id)){
var cmd_id = serie.options.id;
Expand Down Expand Up @@ -200,4 +200,4 @@ function addChart(_cmd_id, _action) {
}
});
}
}
}

0 comments on commit 945e435

Please sign in to comment.