some cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-07-11 22:26:06 +03:00
parent f4e161cc9d
commit e473dc2128

View File

@ -375,7 +375,7 @@ var BrowserPrototype = {
// Copy/Paste actions... // Copy/Paste actions...
// //
// XXX use 'Test' for IE... // XXX use 'Text' for IE...
copy: function(){ copy: function(){
var path = this.strPath var path = this.strPath
@ -466,9 +466,7 @@ var BrowserPrototype = {
.addClass('dir cur') .addClass('dir cur')
.click(function(){ .click(function(){
event.stopPropagation() event.stopPropagation()
that.toggleFilter('on') that.toggleFilter('on')
//that.update(path.concat($(this).text()))
}) })
.on('blur', function(){ .on('blur', function(){
that.toggleFilter('off') that.toggleFilter('off')
@ -846,7 +844,6 @@ var BrowserPrototype = {
this.focus() this.focus()
} }
// XXX is this correct???
return this return this
}), }),
// shorthands mostly for use in actions and for chaining... // shorthands mostly for use in actions and for chaining...
@ -1030,6 +1027,7 @@ var BrowserPrototype = {
this.select(null, filtering) this.select(null, filtering)
} else { } else {
// clear selection...
this.select('none', filtering) this.select('none', filtering)
if(!filtering){ if(!filtering){
browser.find('.path .dir.cur').text(elem.text()) browser.find('.path .dir.cur').text(elem.text())
@ -1055,6 +1053,7 @@ var BrowserPrototype = {
p.scrollTop(S + t - D) p.scrollTop(S + t - D)
} }
// now do the selection...
elem.addClass('selected') elem.addClass('selected')
browser.attr('value', elem.text()) browser.attr('value', elem.text())
@ -1188,6 +1187,9 @@ var BrowserPrototype = {
// This is signature compatible with .select(..) but adds support // This is signature compatible with .select(..) but adds support
// for full paths. // for full paths.
// //
// The .options.open(..), if defined, will always get the full path
// as first argument.
//
// NOTE: if nothing is selected this will do nothing... // NOTE: if nothing is selected this will do nothing...
// NOTE: internally this is never called directly, instead a pre-open // NOTE: internally this is never called directly, instead a pre-open
// stage is used to execute default behavior not directly // stage is used to execute default behavior not directly