forked from 0x2620/pandora
cosmetic changes
This commit is contained in:
parent
e37290789c
commit
886794e4a3
3 changed files with 13 additions and 13 deletions
|
@ -211,8 +211,8 @@ pandora.UI = (function() {
|
||||||
}
|
}
|
||||||
triggerEvents && Ox.forEach(trigger, function(val, key) {
|
triggerEvents && Ox.forEach(trigger, function(val, key) {
|
||||||
Ox.Log('UI', 'TRIGGER ', key, val);
|
Ox.Log('UI', 'TRIGGER ', key, val);
|
||||||
Ox.forEach(pandora.$ui, function(element) {
|
Ox.forEach(pandora.$ui, function($element) {
|
||||||
Ox.UI.isElement(element) && element.triggerEvent('pandora_' + key.toLowerCase(), {
|
Ox.UI.isElement($element) && $element.triggerEvent('pandora_' + key.toLowerCase(), {
|
||||||
value: val,
|
value: val,
|
||||||
previousValue: self.previousUI[key]
|
previousValue: self.previousUI[key]
|
||||||
});
|
});
|
||||||
|
|
|
@ -71,7 +71,7 @@ appPanel
|
||||||
|
|
||||||
function getPandoraVersion() {
|
function getPandoraVersion() {
|
||||||
var i, path, scripts = document.getElementsByTagName('script');
|
var i, path, scripts = document.getElementsByTagName('script');
|
||||||
for (i = 0;i < scripts.length; i++) {
|
for (i = 0; i < scripts.length; i++) {
|
||||||
if(/pandora.js/.test(scripts[i].src)) {
|
if(/pandora.js/.test(scripts[i].src)) {
|
||||||
return scripts[i].src.replace(/.*\?/, '');
|
return scripts[i].src.replace(/.*\?/, '');
|
||||||
}
|
}
|
||||||
|
|
|
@ -775,7 +775,7 @@ pandora.enableDragAndDrop = function($list, canMove, section) {
|
||||||
whiteSpace: 'nowrap'
|
whiteSpace: 'nowrap'
|
||||||
})
|
})
|
||||||
.html(text)
|
.html(text)
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isAtListsTop(e) {
|
function isAtListsTop(e) {
|
||||||
|
@ -1722,9 +1722,9 @@ pandora.getVideoPartsAndPoints = function(durations, points) {
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.hasDialogOrScreen = function() {
|
pandora.hasDialogOrScreen = function() {
|
||||||
return $('.OxDialog:visible').length
|
return !!$('.OxDialog:visible').length
|
||||||
|| $('.OxFullscreen').length
|
|| !!$('.OxFullscreen').length
|
||||||
|| $('.OxScreen').length;
|
|| !!$('.OxScreen').length;
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.hasEventsLayer = function() {
|
pandora.hasEventsLayer = function() {
|
||||||
|
@ -1982,15 +1982,15 @@ pandora.resizeWindow = function() {
|
||||||
pandora.$ui.clipList.size();
|
pandora.$ui.clipList.size();
|
||||||
} else if (pandora.user.ui.itemView == 'timeline') {
|
} else if (pandora.user.ui.itemView == 'timeline') {
|
||||||
pandora.$ui.timeline && pandora.$ui.timeline.options({
|
pandora.$ui.timeline && pandora.$ui.timeline.options({
|
||||||
// fixme: duplicated
|
// fixme: duplicated
|
||||||
height: pandora.$ui.contentPanel.size(1),
|
height: pandora.$ui.contentPanel.size(1),
|
||||||
width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1
|
width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1
|
||||||
});
|
});
|
||||||
} else if (pandora.user.ui.itemView == 'player') {
|
} else if (pandora.user.ui.itemView == 'player') {
|
||||||
pandora.$ui.player && pandora.$ui.player.options({
|
pandora.$ui.player && pandora.$ui.player.options({
|
||||||
// fixme: duplicated
|
// fixme: duplicated
|
||||||
height: pandora.$ui.contentPanel.size(1),
|
height: pandora.$ui.contentPanel.size(1),
|
||||||
width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1
|
width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1
|
||||||
});
|
});
|
||||||
} else if (pandora.user.ui.itemView == 'editor') {
|
} else if (pandora.user.ui.itemView == 'editor') {
|
||||||
pandora.$ui.editor && pandora.$ui.editor.options({
|
pandora.$ui.editor && pandora.$ui.editor.options({
|
||||||
|
|
Loading…
Reference in a new issue