selectbefore/selectafter -> selectprevious/selectnext
This commit is contained in:
parent
9d802dbf49
commit
74e6c12904
4 changed files with 19 additions and 19 deletions
|
@ -12,8 +12,8 @@ Ox.ArrayEditable <f> Array Editable
|
|||
edit <!> edit
|
||||
insert <!> insert
|
||||
open <!> open
|
||||
selectafter <!> selectafter
|
||||
selectbefore <!> selectbefore
|
||||
selectnext <!> selectnext
|
||||
selectprevious <!> selectprevious
|
||||
selectnone <!> selectnone
|
||||
select <!> select
|
||||
submit <!> submit
|
||||
|
@ -239,7 +239,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
if (self.selected > -1) {
|
||||
self.selected > 0
|
||||
? selectItem(0)
|
||||
: that.triggerEvent('selectbefore');
|
||||
: that.triggerEvent('selectprevious');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
if (self.selected > -1) {
|
||||
self.selected < self.options.items.length - 1
|
||||
? selectItem(self.options.items.length - 1)
|
||||
: that.triggerEvent('selectafter');
|
||||
: that.triggerEvent('selectnext');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -272,7 +272,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
if (self.selected > -1) {
|
||||
self.selected < self.options.items.length - 1
|
||||
? selectItem(self.selected + 1)
|
||||
: that.triggerEvent('selectafter');
|
||||
: that.triggerEvent('selectnext');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -284,7 +284,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
if (self.selected > -1) {
|
||||
self.selected > 0
|
||||
? selectItem(self.selected - 1)
|
||||
: that.triggerEvent('selectbefore');
|
||||
: that.triggerEvent('selectprevious');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -50,8 +50,8 @@ Ox.List <f> List constructor
|
|||
openpreview <!> preview of selected item opened
|
||||
closepreview <!> preview closed
|
||||
select <!> select item
|
||||
selectafter <!> selectafter
|
||||
selectbefore <!> selectbefore
|
||||
selectnext <!> selectnext
|
||||
selectprevious <!> selectprevious
|
||||
toggle <!> toggle
|
||||
@*/
|
||||
|
||||
|
@ -1178,7 +1178,7 @@ Ox.List = function(options, self) {
|
|||
select(pos);
|
||||
scrollToPosition(pos);
|
||||
} else if (self.selected.length) {
|
||||
that.triggerEvent('selectafter');
|
||||
that.triggerEvent('selectnext');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1192,7 +1192,7 @@ Ox.List = function(options, self) {
|
|||
select(pos);
|
||||
scrollToPosition(pos);
|
||||
} else if (self.selected.length) {
|
||||
that.triggerEvent('selectbefore');
|
||||
that.triggerEvent('selectprevious');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ Ox.AnnotationFolder <f> AnnotationFolder Object
|
|||
key_* <!> key_*
|
||||
open <!> open
|
||||
remove <!> remove
|
||||
selectafter <!> selectafter
|
||||
selectbefore <!> selectbefore
|
||||
selectnext <!> selectnext
|
||||
selectprevious <!> selectprevious
|
||||
selectnone <!> selectnone
|
||||
select <!> select
|
||||
submit <!> submit
|
||||
|
@ -307,11 +307,11 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
that.triggerEvent('open');
|
||||
},
|
||||
select: selectAnnotation,
|
||||
selectafter: function() {
|
||||
that.triggerEvent('selectafter');
|
||||
selectnext: function() {
|
||||
that.triggerEvent('selectnext');
|
||||
},
|
||||
selectbefore: function() {
|
||||
that.triggerEvent('selectbefore');
|
||||
selectprevious: function() {
|
||||
that.triggerEvent('selectprevious');
|
||||
},
|
||||
selectnone: function() {
|
||||
that.triggerEvent('selectnone');
|
||||
|
@ -652,7 +652,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
self.$annotations.gainFocus();
|
||||
} else {
|
||||
that.triggerEvent(
|
||||
position == 0 ? 'selectafter' : 'selectbefore'
|
||||
position == 0 ? 'selectnext' : 'selectprevious'
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -340,10 +340,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
select: function(data) {
|
||||
selectAnnotation(data, index);
|
||||
},
|
||||
selectafter: function() {
|
||||
selectnext: function() {
|
||||
selectNext(layer.id, 1);
|
||||
},
|
||||
selectbefore: function() {
|
||||
selectprevious: function() {
|
||||
selectNext(layer.id, -1);
|
||||
},
|
||||
selectnone: selectNone,
|
||||
|
|
Loading…
Reference in a new issue