Fix Bug 47147

This commit is contained in:
Julia Radzhabova 2020-10-28 21:53:53 +03:00
parent 444db6f38f
commit dc40050edc
2 changed files with 10 additions and 2 deletions

View file

@ -451,7 +451,8 @@ define([
onApiBullets: function(data) {
var type = data.get_ListType(),
subtype = data.get_ListSubType();
$('.dataview.bullets li').removeClass('active');
$('.dataview.numbers li').removeClass('active');
switch (type) {
case 0:
$('.dataview.bullets li[data-type=' + subtype + ']').addClass('active');
@ -459,6 +460,9 @@ define([
case 1:
$('.dataview.numbers li[data-type=' + subtype + ']').addClass('active');
break;
default:
$('.dataview.bullets li[data-type="-1"]').addClass('active');
$('.dataview.numbers li[data-type="-1"]').addClass('active');
}
},

View file

@ -544,7 +544,8 @@ define([
onApiBullets: function(data) {
var type = data.get_ListType(),
subtype = data.get_ListSubType();
$('.dataview.bullets li').removeClass('active');
$('.dataview.numbers li').removeClass('active');
switch (type) {
case 0:
$('.dataview.bullets li[data-type=' + subtype + ']').addClass('active');
@ -552,6 +553,9 @@ define([
case 1:
$('.dataview.numbers li[data-type=' + subtype + ']').addClass('active');
break;
default:
$('.dataview.bullets li[data-type="-1"]').addClass('active');
$('.dataview.numbers li[data-type="-1"]').addClass('active');
}
},