1
0
Fork 0
forked from 0x2620/oxjs

selectbefore/selectafter -> selectprevious/selectnext

This commit is contained in:
rlx 2013-05-08 16:53:33 +00:00
commit 74e6c12904
4 changed files with 19 additions and 19 deletions

View file

@ -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'
);
}
};