Skip to content

Commit

Permalink
don't deselect when clicking on selected result
Browse files Browse the repository at this point in the history
  • Loading branch information
rochecompaan committed Dec 29, 2012
1 parent d42b55b commit 8525513
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions clickdummies/contentfinder/contentfinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,16 @@ ContentFinder.prototype.listdir = function(path) {
$('li.not-folderish', this.results)
.unbind('.finderresult')
.bind('click.finderresult', function() {
self.result_click($(this));
/* only select when clicking on result, don't toggle */
if ($(this).hasClass('selected') === false)
self.result_click($(this));
});

$('li.folderish', this.container).single_double_click(
function() {
self.result_click($(this));
/* only select when clicking on result, don't toggle */
if ($(this).hasClass('selected') === false)
self.result_click($(this));
},
function(e) {
e.preventDefault();
Expand Down

0 comments on commit 8525513

Please sign in to comment.