add clipsView

This commit is contained in:
rolux 2011-10-30 15:36:14 +00:00
parent c0e6e012b2
commit f2b401d69b
5 changed files with 28 additions and 5 deletions

View 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;
};

View file

@ -144,7 +144,7 @@ pandora.ui.item = function() {
} else if (pandora.user.ui.itemView == 'clips') { } else if (pandora.user.ui.itemView == 'clips') {
pandora.$ui.contentPanel.replaceElement(1, 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') { } else if (pandora.user.ui.itemView == 'video') {

View file

@ -43,7 +43,7 @@ pandora.ui.rightPanel = function() {
} else { } else {
pandora.$ui.browser.scrollToSelection(); pandora.$ui.browser.scrollToSelection();
if (pandora.user.ui.itemView == 'clips') { if (pandora.user.ui.itemView == 'clips') {
pandora.$ui.clips.size(); pandora.$ui.clipList.size();
} else if (pandora.user.ui.itemView == 'video') { } else if (pandora.user.ui.itemView == 'video') {
pandora.$ui.player.options({width: data.size}); pandora.$ui.player.options({width: data.size});
} else if (pandora.user.ui.itemView == 'timeline') { } else if (pandora.user.ui.itemView == 'timeline') {

View file

@ -13,12 +13,12 @@ pandora.ui.toolbar = function() {
that.append( that.append(
pandora.$ui.viewSelect = pandora.ui.viewSelect() pandora.$ui.viewSelect = pandora.ui.viewSelect()
); );
if (!ui.item || pandora.isClipView()) { if (!ui.item && pandora.isClipView()) {
that.append( that.append(
pandora.$ui.sortSelect = pandora.ui.sortSelect() pandora.$ui.sortSelect = pandora.ui.sortSelect()
); );
} }
if (!ui.item || pandora.isClipView()) { if (!ui.item && pandora.isClipView()) {
that.append( that.append(
pandora.$ui.orderButton = pandora.ui.orderButton() pandora.$ui.orderButton = pandora.ui.orderButton()
); );

View file

@ -817,7 +817,7 @@ pandora.resizeWindow = function() {
if (pandora.user.ui.itemView == 'info') { if (pandora.user.ui.itemView == 'info') {
pandora.$ui.info.resize(); pandora.$ui.info.resize();
} else if (pandora.user.ui.itemView == 'clips') { } else if (pandora.user.ui.itemView == 'clips') {
pandora.$ui.clips.size(); pandora.$ui.clipList.size();
} else if (pandora.user.ui.itemView == 'video') { } else if (pandora.user.ui.itemView == 'video') {
pandora.$ui.player.options({ pandora.$ui.player.options({
// fixme: duplicated // fixme: duplicated