Fix Bug 47147
This commit is contained in:
parent
444db6f38f
commit
dc40050edc
|
@ -451,7 +451,8 @@ define([
|
||||||
onApiBullets: function(data) {
|
onApiBullets: function(data) {
|
||||||
var type = data.get_ListType(),
|
var type = data.get_ListType(),
|
||||||
subtype = data.get_ListSubType();
|
subtype = data.get_ListSubType();
|
||||||
|
$('.dataview.bullets li').removeClass('active');
|
||||||
|
$('.dataview.numbers li').removeClass('active');
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 0:
|
case 0:
|
||||||
$('.dataview.bullets li[data-type=' + subtype + ']').addClass('active');
|
$('.dataview.bullets li[data-type=' + subtype + ']').addClass('active');
|
||||||
|
@ -459,6 +460,9 @@ define([
|
||||||
case 1:
|
case 1:
|
||||||
$('.dataview.numbers li[data-type=' + subtype + ']').addClass('active');
|
$('.dataview.numbers li[data-type=' + subtype + ']').addClass('active');
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$('.dataview.bullets li[data-type="-1"]').addClass('active');
|
||||||
|
$('.dataview.numbers li[data-type="-1"]').addClass('active');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -544,7 +544,8 @@ define([
|
||||||
onApiBullets: function(data) {
|
onApiBullets: function(data) {
|
||||||
var type = data.get_ListType(),
|
var type = data.get_ListType(),
|
||||||
subtype = data.get_ListSubType();
|
subtype = data.get_ListSubType();
|
||||||
|
$('.dataview.bullets li').removeClass('active');
|
||||||
|
$('.dataview.numbers li').removeClass('active');
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 0:
|
case 0:
|
||||||
$('.dataview.bullets li[data-type=' + subtype + ']').addClass('active');
|
$('.dataview.bullets li[data-type=' + subtype + ']').addClass('active');
|
||||||
|
@ -552,6 +553,9 @@ define([
|
||||||
case 1:
|
case 1:
|
||||||
$('.dataview.numbers li[data-type=' + subtype + ']').addClass('active');
|
$('.dataview.numbers li[data-type=' + subtype + ']').addClass('active');
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$('.dataview.bullets li[data-type="-1"]').addClass('active');
|
||||||
|
$('.dataview.numbers li[data-type="-1"]').addClass('active');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue