s/.find/find

This commit is contained in:
j 2012-05-22 15:15:16 +02:00
parent 0719735feb
commit 5a37541299
10 changed files with 18 additions and 20 deletions

View file

@ -291,7 +291,7 @@ pandora.ui.accountForm = function(action, value) {
validate: pandora.validateUser(data.value, true),
value: ''
}).focusInput(true);
that.$element.find('.OxFormMessage:visible').html('').hide();
that.find('.OxFormMessage:visible').html('').hide();
pandora.$ui.accountDialog.disableButton('submitReset');
}
}),

View file

@ -57,7 +57,7 @@ pandora.ui.itemClips = function(options) {
.data(Ox.extend(annotations.length ? {
annotation: annotations[0].id.split('/')[1],
} : {}, {'in': clip['in'], out: clip.out}));
$item.$element.find('.OxTarget').addClass('OxSpecialTarget');
$item.find('.OxTarget').addClass('OxSpecialTarget');
that.append($item);
});

View file

@ -566,8 +566,8 @@ pandora.ui.list = function() {
);
previousSrc = Ox.UI.getImageURL(
data.previousValue == 'posters' ? 'symbolSetPoster' : 'symbolIcon'
)
that.$element.find('img[src="' + previousSrc + '"]').attr({src: src});
);
that.find('img[src="' + previousSrc + '"]').attr({src: src});
} else {
that.options({
borderRadius: data.value == 'posters' ? 0 : 16,

View file

@ -39,7 +39,7 @@ pandora.ui.listDialog = function(section) {
$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({
elements: [

View file

@ -209,7 +209,7 @@ pandora.ui.logsDialog = function() {
fontSize: '9px',
textAlign: 'center',
})
.appendTo(that.$element.find('.OxButtonsbar'));
.appendTo(that.find('.OxButtonsbar'));
that.superClose = that.close;
that.close = function() {

View file

@ -84,8 +84,7 @@ pandora.ui.namesDialog = function() {
);
},
open: function(data) {
$list.$element
.find('.OxItem.OxSelected > .OxCell.OxColumnSortname')
$list.find('.OxItem.OxSelected > .OxCell.OxColumnSortname')
.trigger('mousedown')
.trigger('mouseup');
},
@ -179,7 +178,7 @@ pandora.ui.namesDialog = function() {
fontSize: '9px',
textAlign: 'center',
})
.appendTo(that.$element.find('.OxButtonsbar'));
.appendTo(that.find('.OxButtonsbar'));
return that;

View file

@ -387,7 +387,7 @@ pandora.ui.statisticsDialog = function() {
keyWidth: 128,
sort: {key: 'value', operator: '-'},
title: Ox.endsWith(key, 'y')
? Ox.sub(Ox.toTitleCase(key), 0, -1) + 'ies'
? Ox.toTitleCase(key).slice(0, -1) + 'ies'
: Ox.toTitleCase(key) + 's',
width: chartWidth
})
@ -558,7 +558,7 @@ pandora.ui.statisticsDialog = function() {
tabs: tabs
});
$tabPanel.$element.find('.OxButtonGroup').css({width: '512px'});
$tabPanel.find('.OxButtonGroup').css({width: '512px'});
$guestsCheckbox.appendTo($tabPanel.children('.OxBar'));
$dialog.options({content: $tabPanel});

View file

@ -73,8 +73,7 @@ pandora.ui.titlesDialog = function() {
);
},
open: function(data) {
$list.$element
.find('.OxItem.OxSelected > .OxCell.OxColumnSorttitle')
$list.find('.OxItem.OxSelected > .OxCell.OxColumnSorttitle')
.trigger('mousedown')
.trigger('mouseup');
},
@ -168,7 +167,7 @@ pandora.ui.titlesDialog = function() {
fontSize: '9px',
textAlign: 'center',
})
.appendTo(that.$element.find('.OxButtonsbar'));
.appendTo(that.find('.OxButtonsbar'));
return that;

View file

@ -580,7 +580,7 @@ pandora.ui.usersDialog = function() {
fontSize: '9px',
textAlign: 'center'
})
.appendTo(that.$element.find('.OxButtonsbar'));
.appendTo(that.find('.OxButtonsbar'));
that.superClose = that.close;
that.close = function() {

View file

@ -228,7 +228,7 @@ pandora.enableDragAndDrop = function($list, canMove) {
drag.source = pandora.getListData(),
drag.targets = {};
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),
id = $item.data('id'),
data = $list.value(id);
@ -289,8 +289,8 @@ pandora.enableDragAndDrop = function($list, canMove) {
: isAtListsBottom(event) ? 16 : 0
if (scroll) {
scrollInterval = setInterval(function() {
pandora.$ui.folders.$element.scrollTop(
pandora.$ui.folders.$element.scrollTop() + scroll
pandora.$ui.folders.scrollTop(
pandora.$ui.folders.scrollTop() + scroll
);
}, 100);
}
@ -875,7 +875,7 @@ pandora.getVideoOptions = function(data) {
pandora.getVideoPartsAndPoints = function(durations, points) {
var parts = durations.length,
offsets = Ox.range(parts).map(function(i) {
return Ox.sum(Ox.sub(durations, 0, i));
return Ox.sum(durations.slice(0, i));
}),
ret = {
parts: [],