s/.find/find
This commit is contained in:
parent
0719735feb
commit
5a37541299
10 changed files with 18 additions and 20 deletions
|
@ -291,7 +291,7 @@ pandora.ui.accountForm = function(action, value) {
|
||||||
validate: pandora.validateUser(data.value, true),
|
validate: pandora.validateUser(data.value, true),
|
||||||
value: ''
|
value: ''
|
||||||
}).focusInput(true);
|
}).focusInput(true);
|
||||||
that.$element.find('.OxFormMessage:visible').html('').hide();
|
that.find('.OxFormMessage:visible').html('').hide();
|
||||||
pandora.$ui.accountDialog.disableButton('submitReset');
|
pandora.$ui.accountDialog.disableButton('submitReset');
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -57,7 +57,7 @@ pandora.ui.itemClips = function(options) {
|
||||||
.data(Ox.extend(annotations.length ? {
|
.data(Ox.extend(annotations.length ? {
|
||||||
annotation: annotations[0].id.split('/')[1],
|
annotation: annotations[0].id.split('/')[1],
|
||||||
} : {}, {'in': clip['in'], out: clip.out}));
|
} : {}, {'in': clip['in'], out: clip.out}));
|
||||||
$item.$element.find('.OxTarget').addClass('OxSpecialTarget');
|
$item.find('.OxTarget').addClass('OxSpecialTarget');
|
||||||
that.append($item);
|
that.append($item);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -566,8 +566,8 @@ pandora.ui.list = function() {
|
||||||
);
|
);
|
||||||
previousSrc = Ox.UI.getImageURL(
|
previousSrc = Ox.UI.getImageURL(
|
||||||
data.previousValue == 'posters' ? 'symbolSetPoster' : 'symbolIcon'
|
data.previousValue == 'posters' ? 'symbolSetPoster' : 'symbolIcon'
|
||||||
)
|
);
|
||||||
that.$element.find('img[src="' + previousSrc + '"]').attr({src: src});
|
that.find('img[src="' + previousSrc + '"]').attr({src: src});
|
||||||
} else {
|
} else {
|
||||||
that.options({
|
that.options({
|
||||||
borderRadius: data.value == 'posters' ? 0 : 16,
|
borderRadius: data.value == 'posters' ? 0 : 16,
|
||||||
|
|
|
@ -39,7 +39,7 @@ pandora.ui.listDialog = function(section) {
|
||||||
$findElement[data.selected == 'icon' ? 'show' : 'hide']();
|
$findElement[data.selected == 'icon' ? 'show' : 'hide']();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
pandora.$ui.listDialogTabPanel.$element.find('.OxButtonGroup').css({width: '256px'});
|
pandora.$ui.listDialogTabPanel.find('.OxButtonGroup').css({width: '256px'});
|
||||||
|
|
||||||
var $findElement = Ox.FormElementGroup({
|
var $findElement = Ox.FormElementGroup({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -209,7 +209,7 @@ pandora.ui.logsDialog = function() {
|
||||||
fontSize: '9px',
|
fontSize: '9px',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
})
|
})
|
||||||
.appendTo(that.$element.find('.OxButtonsbar'));
|
.appendTo(that.find('.OxButtonsbar'));
|
||||||
|
|
||||||
that.superClose = that.close;
|
that.superClose = that.close;
|
||||||
that.close = function() {
|
that.close = function() {
|
||||||
|
|
|
@ -84,8 +84,7 @@ pandora.ui.namesDialog = function() {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
open: function(data) {
|
open: function(data) {
|
||||||
$list.$element
|
$list.find('.OxItem.OxSelected > .OxCell.OxColumnSortname')
|
||||||
.find('.OxItem.OxSelected > .OxCell.OxColumnSortname')
|
|
||||||
.trigger('mousedown')
|
.trigger('mousedown')
|
||||||
.trigger('mouseup');
|
.trigger('mouseup');
|
||||||
},
|
},
|
||||||
|
@ -179,7 +178,7 @@ pandora.ui.namesDialog = function() {
|
||||||
fontSize: '9px',
|
fontSize: '9px',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
})
|
})
|
||||||
.appendTo(that.$element.find('.OxButtonsbar'));
|
.appendTo(that.find('.OxButtonsbar'));
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
|
|
|
@ -387,7 +387,7 @@ pandora.ui.statisticsDialog = function() {
|
||||||
keyWidth: 128,
|
keyWidth: 128,
|
||||||
sort: {key: 'value', operator: '-'},
|
sort: {key: 'value', operator: '-'},
|
||||||
title: Ox.endsWith(key, 'y')
|
title: Ox.endsWith(key, 'y')
|
||||||
? Ox.sub(Ox.toTitleCase(key), 0, -1) + 'ies'
|
? Ox.toTitleCase(key).slice(0, -1) + 'ies'
|
||||||
: Ox.toTitleCase(key) + 's',
|
: Ox.toTitleCase(key) + 's',
|
||||||
width: chartWidth
|
width: chartWidth
|
||||||
})
|
})
|
||||||
|
@ -558,7 +558,7 @@ pandora.ui.statisticsDialog = function() {
|
||||||
tabs: tabs
|
tabs: tabs
|
||||||
});
|
});
|
||||||
|
|
||||||
$tabPanel.$element.find('.OxButtonGroup').css({width: '512px'});
|
$tabPanel.find('.OxButtonGroup').css({width: '512px'});
|
||||||
$guestsCheckbox.appendTo($tabPanel.children('.OxBar'));
|
$guestsCheckbox.appendTo($tabPanel.children('.OxBar'));
|
||||||
|
|
||||||
$dialog.options({content: $tabPanel});
|
$dialog.options({content: $tabPanel});
|
||||||
|
@ -578,4 +578,4 @@ pandora.ui.statisticsDialog = function() {
|
||||||
|
|
||||||
return $dialog;
|
return $dialog;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -73,8 +73,7 @@ pandora.ui.titlesDialog = function() {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
open: function(data) {
|
open: function(data) {
|
||||||
$list.$element
|
$list.find('.OxItem.OxSelected > .OxCell.OxColumnSorttitle')
|
||||||
.find('.OxItem.OxSelected > .OxCell.OxColumnSorttitle')
|
|
||||||
.trigger('mousedown')
|
.trigger('mousedown')
|
||||||
.trigger('mouseup');
|
.trigger('mouseup');
|
||||||
},
|
},
|
||||||
|
@ -168,7 +167,7 @@ pandora.ui.titlesDialog = function() {
|
||||||
fontSize: '9px',
|
fontSize: '9px',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
})
|
})
|
||||||
.appendTo(that.$element.find('.OxButtonsbar'));
|
.appendTo(that.find('.OxButtonsbar'));
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
|
|
|
@ -580,7 +580,7 @@ pandora.ui.usersDialog = function() {
|
||||||
fontSize: '9px',
|
fontSize: '9px',
|
||||||
textAlign: 'center'
|
textAlign: 'center'
|
||||||
})
|
})
|
||||||
.appendTo(that.$element.find('.OxButtonsbar'));
|
.appendTo(that.find('.OxButtonsbar'));
|
||||||
|
|
||||||
that.superClose = that.close;
|
that.superClose = that.close;
|
||||||
that.close = function() {
|
that.close = function() {
|
||||||
|
|
|
@ -228,7 +228,7 @@ pandora.enableDragAndDrop = function($list, canMove) {
|
||||||
drag.source = pandora.getListData(),
|
drag.source = pandora.getListData(),
|
||||||
drag.targets = {};
|
drag.targets = {};
|
||||||
Ox.forEach(pandora.$ui.folderList, function($list) {
|
Ox.forEach(pandora.$ui.folderList, function($list) {
|
||||||
$list.addClass('OxDroppable').$element.find('.OxItem').each(function() {
|
$list.addClass('OxDroppable').find('.OxItem').each(function() {
|
||||||
var $item = $(this),
|
var $item = $(this),
|
||||||
id = $item.data('id'),
|
id = $item.data('id'),
|
||||||
data = $list.value(id);
|
data = $list.value(id);
|
||||||
|
@ -289,8 +289,8 @@ pandora.enableDragAndDrop = function($list, canMove) {
|
||||||
: isAtListsBottom(event) ? 16 : 0
|
: isAtListsBottom(event) ? 16 : 0
|
||||||
if (scroll) {
|
if (scroll) {
|
||||||
scrollInterval = setInterval(function() {
|
scrollInterval = setInterval(function() {
|
||||||
pandora.$ui.folders.$element.scrollTop(
|
pandora.$ui.folders.scrollTop(
|
||||||
pandora.$ui.folders.$element.scrollTop() + scroll
|
pandora.$ui.folders.scrollTop() + scroll
|
||||||
);
|
);
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
@ -875,7 +875,7 @@ pandora.getVideoOptions = function(data) {
|
||||||
pandora.getVideoPartsAndPoints = function(durations, points) {
|
pandora.getVideoPartsAndPoints = function(durations, points) {
|
||||||
var parts = durations.length,
|
var parts = durations.length,
|
||||||
offsets = Ox.range(parts).map(function(i) {
|
offsets = Ox.range(parts).map(function(i) {
|
||||||
return Ox.sum(Ox.sub(durations, 0, i));
|
return Ox.sum(durations.slice(0, i));
|
||||||
}),
|
}),
|
||||||
ret = {
|
ret = {
|
||||||
parts: [],
|
parts: [],
|
||||||
|
|
Loading…
Reference in a new issue