|
|
@ -111,7 +111,7 @@ define([
|
|
|
|
var $sortDescIcon = $('<span>', {"class": "fa fa-angle-down sortdesc"});
|
|
|
|
var $sortDescIcon = $('<span>', {"class": "fa fa-angle-down sortdesc"});
|
|
|
|
var $closeIcon = $('<span>', {"class": "fa fa-window-close"});
|
|
|
|
var $closeIcon = $('<span>', {"class": "fa fa-window-close"});
|
|
|
|
//var $backupIcon = $('<span>', {"class": "fa fa-life-ring"});
|
|
|
|
//var $backupIcon = $('<span>', {"class": "fa fa-life-ring"});
|
|
|
|
var $searchIcon = $('<span>', {"class": "fa fa-search cp-app-drive-tree-search-con"});
|
|
|
|
var $searchIcon = $('<span>', {"class": "fa fa-search cp-app-drive-tree-search-icon"});
|
|
|
|
var $addIcon = $('<span>', {"class": "fa fa-plus"});
|
|
|
|
var $addIcon = $('<span>', {"class": "fa fa-plus"});
|
|
|
|
var $renamedIcon = $('<span>', {"class": "fa fa-flag"});
|
|
|
|
var $renamedIcon = $('<span>', {"class": "fa fa-flag"});
|
|
|
|
var $readonlyIcon = $('<span>', {"class": "fa " + faReadOnly});
|
|
|
|
var $readonlyIcon = $('<span>', {"class": "fa " + faReadOnly});
|
|
|
@ -2971,6 +2971,13 @@ define([
|
|
|
|
else { displayDirectory([ROOT]); }
|
|
|
|
else { displayDirectory([ROOT]); }
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($input.val()) {
|
|
|
|
|
|
|
|
if (!$input.hasClass('cp-app-drive-search-active')) {
|
|
|
|
|
|
|
|
$input.addClass('cp-app-drive-search-active');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$input.removeClass('cp-app-drive-search-active');
|
|
|
|
|
|
|
|
}
|
|
|
|
if (APP.mobile()) { return; }
|
|
|
|
if (APP.mobile()) { return; }
|
|
|
|
search.to = window.setTimeout(function () {
|
|
|
|
search.to = window.setTimeout(function () {
|
|
|
|
if (!isInSearchTmp) { search.oldLocation = currentPath.slice(); }
|
|
|
|
if (!isInSearchTmp) { search.oldLocation = currentPath.slice(); }
|
|
|
@ -2979,8 +2986,18 @@ define([
|
|
|
|
if (!manager.comparePath(newLocation, currentPath.slice())) { displayDirectory(newLocation); }
|
|
|
|
if (!manager.comparePath(newLocation, currentPath.slice())) { displayDirectory(newLocation); }
|
|
|
|
}, 500);
|
|
|
|
}, 500);
|
|
|
|
}).appendTo($div);
|
|
|
|
}).appendTo($div);
|
|
|
|
|
|
|
|
var cancel = h('span.fa.fa-times.cp-app-drive-search-cancel', {title:Messages.cancel});
|
|
|
|
|
|
|
|
cancel.addEventListener('click', function () {
|
|
|
|
|
|
|
|
$input.val('');
|
|
|
|
|
|
|
|
setSearchCursor(0);
|
|
|
|
|
|
|
|
if (search.oldLocation && search.oldLocation.length) { displayDirectory(search.oldLocation); }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$div.append(cancel);
|
|
|
|
$searchIcon.clone().appendTo($div);
|
|
|
|
$searchIcon.clone().appendTo($div);
|
|
|
|
if (isInSearch) { $input.val(currentPath[1] || ''); }
|
|
|
|
if (isInSearch) {
|
|
|
|
|
|
|
|
$input.val(currentPath[1] || '');
|
|
|
|
|
|
|
|
if ($input.val()) { $input.addClass('cp-app-drive-search-active'); }
|
|
|
|
|
|
|
|
}
|
|
|
|
$container.append($div);
|
|
|
|
$container.append($div);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|