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
1 changed files with 7 additions and 0 deletions

View File

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