Fix hint counter on unselect the last row

refs #7654
This commit is contained in:
Alexander Fuhr 2014-11-14 10:15:37 +01:00
parent 1c4a5ce86f
commit 540a8c7aa4

View File

@ -480,6 +480,13 @@
provideSelectionCount: function() { provideSelectionCount: function() {
var $count = $('.selection-info-count'); var $count = $('.selection-info-count');
console.log(selectionData);
if (typeof selectionData === 'undefined' || selectionData === null) {
$count.text(0);
return;
}
if (typeof selectionData === 'string') { if (typeof selectionData === 'string') {
$count.text(1); $count.text(1);
} else if (selectionData.length > 1) { } else if (selectionData.length > 1) {