add option to open folder

This commit is contained in:
j 2015-11-30 17:50:03 +01:00
commit 216cb411fe
3 changed files with 33 additions and 0 deletions

View file

@ -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);
}