add clipsView
This commit is contained in:
parent
c0e6e012b2
commit
f2b401d69b
5 changed files with 28 additions and 5 deletions
23
static/js/pandora/clipsView.js
Normal file
23
static/js/pandora/clipsView.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
pandora.ui.clipsView = function(videoRatio) {
|
||||
|
||||
var that = Ox.SplitPanel({
|
||||
elements: [
|
||||
{
|
||||
element: Ox.Bar({size: 24})
|
||||
.append(
|
||||
pandora.$ui.sortSelect = pandora.ui.sortSelect()
|
||||
)
|
||||
.append(
|
||||
pandora.$ui.orderButton = pandora.ui.orderButton()
|
||||
)
|
||||
},
|
||||
{
|
||||
element: pandora.$ui.clipList = pandora.ui.clipList(videoRatio);
|
||||
}
|
||||
],
|
||||
orientation: 'vertical'
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
|
@ -144,7 +144,7 @@ pandora.ui.item = function() {
|
|||
|
||||
} else if (pandora.user.ui.itemView == 'clips') {
|
||||
pandora.$ui.contentPanel.replaceElement(1,
|
||||
pandora.$ui.clips = pandora.ui.clipList(result.data.videoRatio)
|
||||
pandora.ui.clipsView(result.data.videoRatio)
|
||||
);
|
||||
|
||||
} else if (pandora.user.ui.itemView == 'video') {
|
||||
|
|
|
@ -43,7 +43,7 @@ pandora.ui.rightPanel = function() {
|
|||
} else {
|
||||
pandora.$ui.browser.scrollToSelection();
|
||||
if (pandora.user.ui.itemView == 'clips') {
|
||||
pandora.$ui.clips.size();
|
||||
pandora.$ui.clipList.size();
|
||||
} else if (pandora.user.ui.itemView == 'video') {
|
||||
pandora.$ui.player.options({width: data.size});
|
||||
} else if (pandora.user.ui.itemView == 'timeline') {
|
||||
|
|
|
@ -13,12 +13,12 @@ pandora.ui.toolbar = function() {
|
|||
that.append(
|
||||
pandora.$ui.viewSelect = pandora.ui.viewSelect()
|
||||
);
|
||||
if (!ui.item || pandora.isClipView()) {
|
||||
if (!ui.item && pandora.isClipView()) {
|
||||
that.append(
|
||||
pandora.$ui.sortSelect = pandora.ui.sortSelect()
|
||||
);
|
||||
}
|
||||
if (!ui.item || pandora.isClipView()) {
|
||||
if (!ui.item && pandora.isClipView()) {
|
||||
that.append(
|
||||
pandora.$ui.orderButton = pandora.ui.orderButton()
|
||||
);
|
||||
|
|
|
@ -817,7 +817,7 @@ pandora.resizeWindow = function() {
|
|||
if (pandora.user.ui.itemView == 'info') {
|
||||
pandora.$ui.info.resize();
|
||||
} else if (pandora.user.ui.itemView == 'clips') {
|
||||
pandora.$ui.clips.size();
|
||||
pandora.$ui.clipList.size();
|
||||
} else if (pandora.user.ui.itemView == 'video') {
|
||||
pandora.$ui.player.options({
|
||||
// fixme: duplicated
|
||||
|
|
Loading…
Reference in a new issue