Commit f938a0d6 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸
Browse files

fixes

parent 586806da
......@@ -1000,7 +1000,7 @@ var STWkit;
if (gonext) {
self.showNext(chain, id);
self.accordion.toggleItem($("#" + id).data('wrapper'), true, true);
(self.cardMap[id].nextId && self.accordion.toggleItem($("#" + self.cardMap[id].nextId).data('wrapper'), true, true));
(self.cardMap[id].nextId && $("#" + self.cardMap[id].nextId).data('wrapper') && self.accordion.toggleItem($("#" + self.cardMap[id].nextId).data('wrapper'), true, true));
}
}
else {
......
This diff is collapsed.
......@@ -1092,7 +1092,7 @@ module STWkit {
if (gonext) {
self.showNext(chain, id);
self.accordion.toggleItem($("#" + id).data('wrapper'), true, true);
(self.cardMap[id].nextId && self.accordion.toggleItem($("#" + self.cardMap[id].nextId).data('wrapper'), true, true))
(self.cardMap[id].nextId && $("#" + self.cardMap[id].nextId).data('wrapper') && self.accordion.toggleItem($("#" + self.cardMap[id].nextId).data('wrapper'), true, true))
}
} else {
self.updateBadgeStatus();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment