Permalink
Browse files

don't deselect when clicking on selected result

  • Loading branch information...
1 parent d42b55b commit 85255136aa4e424ca77d24975522465ea65a90fa @rochecompaan rochecompaan committed Dec 29, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 clickdummies/contentfinder/contentfinder.js
@@ -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();

0 comments on commit 8525513

Please sign in to comment.