code: function() {
  				var phash = fm.cwd().hash;
  
  				selectCheckbox && selectAllCheckbox.find('input').prop('checked', true);
  				fm.lazy(function() {
  					var files;
  					cwd.find('[id]:not(.'+clSelected+'):not(.elfinder-cwd-parent)').trigger(evtSelect);
  					if (fm.maxTargets && (incHashes || cwdHashes).length > fm.maxTargets) {
  						files = $.map(incHashes || cwdHashes, function(hash) { return fm.file(hash) || null; });
  						files = files.slice(0, fm.maxTargets);
  						selectedFiles = {};
  						$.each(files, function(i, v) {
  							selectedFiles[v.hash] = true;
  						});
  						fm.toast({mode: 'warning', msg: fm.i18n(['errMaxTargets', fm.maxTargets])});
  					} else {
  						selectedFiles = fm.arrayFlip(incHashes || cwdHashes, true);
  					}
  					trigger();
  					selectCheckbox && selectAllCheckbox.data('pending', false);
  				}, 0, {repaint: true});
  			}
docs: fm.time('cwdLoad');