code: function(p) {
  				var phash = fm.cwd().p,
  					pdir  = fm.file(phash) || null,
  					set   = function(pdir) {
  						if (pdir) {
  							parent = $(itemhtml($.extend(true, {}, pdir, {name : '..', i18 : '..', mime : 'directory'})))
  								.addClass('elfinder-cwd-parent')
  								.on('dblclick', function() {
  									var hash = fm.cwdId2Hash(this.id);
  									fm.trigger('select', {selected : [hash]}).exec('open', hash);
  								}
  							);
  							(list ? parent.children('td:first') : parent).children('.elfinder-cwd-select').remove();
  							(list ? cwd.find('tbody') : cwd).prepend(parent);
  						}
  					};
  				if (pdir) {
  					set(pdir);
  				} else {
  					if (fm.getUI('tree').length) {
  						fm.one('parents', function() {
  							set(fm.file(phash) || null);
  							wrapper.trigger(scrollEvent);
  						});
  					} else {
  						fm.request({
  							data : {cmd : 'parents', target : fm.cwd().hash},
  							preventFail : true
  						})
  						.done(function(data) {
  							set(fm.file(phash) || null);
  							wrapper.trigger(scrollEvent);
  						});
  					}
  				}
  			}
docs: fm.time('cwdLoad');