add option to open folder
This commit is contained in:
parent
aba444e2c4
commit
216cb411fe
3 changed files with 33 additions and 0 deletions
|
|
@ -184,6 +184,19 @@ oml.ui.infoView = function(identifyData) {
|
|||
})
|
||||
.css({marginTop: '16px'});
|
||||
}
|
||||
function renderOpenButton(data) {
|
||||
return data.mediastate == 'available'
|
||||
? Ox.Button({
|
||||
title: Ox._('Open Folder'),
|
||||
width: 128
|
||||
})
|
||||
.css({marginTop: '16px'})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
oml.api.openFolder({id: oml.user.ui.item});
|
||||
}
|
||||
}) : Ox.Element();
|
||||
}
|
||||
|
||||
function renderMediaButton(data) {
|
||||
|
||||
|
|
@ -666,6 +679,8 @@ oml.ui.infoView = function(identifyData) {
|
|||
}
|
||||
});
|
||||
|
||||
renderOpenButton(data).appendTo($data);
|
||||
|
||||
$('<div>').css({height: '16px'}).appendTo($data);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue