Skip to content

Commit

Permalink
Fix hint counter on unselect the last row
Browse files Browse the repository at this point in the history
refs #7654
  • Loading branch information
Alexander Fuhr committed Nov 14, 2014
1 parent 1c4a5ce commit 540a8c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/js/icinga/ui.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 540a8c7

Please sign in to comment.