1
0
Fork 0
forked from 0x2620/oxjs

Ox.UI.elements -> Ox.elements

This commit is contained in:
rlx 2014-09-24 10:26:51 +02:00
commit 0b5f8f9492
5 changed files with 11 additions and 10 deletions

View file

@ -206,7 +206,7 @@ Ox.AnnotationPanel = function(options, self) {
var id = data.id;
Ox.InsertHTMLDialog(Ox.extend({
callback: function(data) {
Ox.UI.elements[id]
Ox.elements[id]
.value(data.value)
.focusInput(data.position)
.triggerEvent('change', data.value);

View file

@ -1274,7 +1274,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
if (Ox.isUndefined(data)) {
// doubleclick on small timeline
data = getAnnotation();
} else if (!data.id && Ox.UI.elements[that.oxid]) {
} else if (!data.id && Ox.elements[that.oxid]) {
// focus only if in the dom
that.gainFocus();
}