Fix ghost icon in drive
This commit is contained in:
parent
e2f53eaddb
commit
ceb8ff18bd
@ -1465,11 +1465,11 @@ define([
|
|||||||
APP.newFolder = info.newPath;
|
APP.newFolder = info.newPath;
|
||||||
refresh();
|
refresh();
|
||||||
};
|
};
|
||||||
$block.find('a.cp-app-drive-toolbar-new-folder, li.cp-app-drive-toolbar-new-folder')
|
$block.find('a.cp-app-drive-new-folder, li.cp-app-drive-new-folder')
|
||||||
.click(function () {
|
.click(function () {
|
||||||
filesOp.addFolder(currentPath, null, onCreated);
|
filesOp.addFolder(currentPath, null, onCreated);
|
||||||
});
|
});
|
||||||
$block.find('a.cp-app-drive-toolbar-new-upload, li.cp-app-drive-toolbar-new-upload')
|
$block.find('a.cp-app-drive-new-upload, li.cp-app-drive-new-upload')
|
||||||
.click(function () {
|
.click(function () {
|
||||||
var $input = $('<input>', {
|
var $input = $('<input>', {
|
||||||
'type': 'file',
|
'type': 'file',
|
||||||
@ -1484,7 +1484,7 @@ define([
|
|||||||
$input.click();
|
$input.click();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$block.find('a.cp-app-drive-toolbar-new-doc, li.cp-app-drive-toolbar-new-doc')
|
$block.find('a.cp-app-drive-new-doc, li.cp-app-drive-new-doc')
|
||||||
.click(function () {
|
.click(function () {
|
||||||
var type = $(this).attr('data-type') || 'pad';
|
var type = $(this).attr('data-type') || 'pad';
|
||||||
var path = filesOp.isPathIn(currentPath, [TRASH]) ? '' : currentPath;
|
var path = filesOp.isPathIn(currentPath, [TRASH]) ? '' : currentPath;
|
||||||
@ -1504,20 +1504,20 @@ define([
|
|||||||
if (isInRoot) {
|
if (isInRoot) {
|
||||||
options.push({
|
options.push({
|
||||||
tag: 'a',
|
tag: 'a',
|
||||||
attributes: {'class': 'cp-app-drive-toolbar-new-older'},
|
attributes: {'class': 'cp-app-drive-new-older'},
|
||||||
content: $('<div>').append($folderIcon.clone()).html() + Messages.fm_folder
|
content: $('<div>').append($folderIcon.clone()).html() + Messages.fm_folder
|
||||||
});
|
});
|
||||||
options.push({tag: 'hr'});
|
options.push({tag: 'hr'});
|
||||||
options.push({
|
options.push({
|
||||||
tag: 'a',
|
tag: 'a',
|
||||||
attributes: {'class': 'cp-app-drive-toolbar-new-upload'},
|
attributes: {'class': 'cp-app-drive-new-upload'},
|
||||||
content: $('<div>').append(getIcon('file')).html() + Messages.uploadButton
|
content: $('<div>').append(getIcon('file')).html() + Messages.uploadButton
|
||||||
});
|
});
|
||||||
options.push({tag: 'hr'});
|
options.push({tag: 'hr'});
|
||||||
}
|
}
|
||||||
getNewPadTypes().forEach(function (type) {
|
getNewPadTypes().forEach(function (type) {
|
||||||
var attributes = {
|
var attributes = {
|
||||||
'class': 'cp-app-drive-toolbar-new-doc',
|
'class': 'cp-app-drive-new-doc',
|
||||||
'data-type': type,
|
'data-type': type,
|
||||||
'href': '#'
|
'href': '#'
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user