Label the delete operation "unshare" for files in the "Shared" folder to reduce
confusion about the operation.
This commit is contained in:
parent
ef6b6ac230
commit
635a2f8ec9
|
@ -91,7 +91,11 @@ FileActions={
|
||||||
if(img.call){
|
if(img.call){
|
||||||
img=img(file);
|
img=img(file);
|
||||||
}
|
}
|
||||||
|
if ($('#dir').val().indexOf('Shared') != -1) {
|
||||||
|
var html='<a href="#" original-title="' + t('files', 'Unshare') + '" class="action delete" style="display:none" />';
|
||||||
|
} else {
|
||||||
var html='<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" style="display:none" />';
|
var html='<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" style="display:none" />';
|
||||||
|
}
|
||||||
var element=$(html);
|
var element=$(html);
|
||||||
if(img){
|
if(img){
|
||||||
element.append($('<img src="'+img+'"/>'));
|
element.append($('<img src="'+img+'"/>'));
|
||||||
|
|
Loading…
Reference in New Issue