dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RCFilters: Use findRelativeSelectableItem instead of getRelativeSelectableitem
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.rcfilters
/
ui
/
mw.rcfilters.ui.MenuSelectWidget.js
diff --git
a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js
b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js
index
2bb0fdf
..
19a2490
100644
(file)
--- a/
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js
+++ b/
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js
@@
-34,8
+34,7
@@
this.inputValue = '';
this.$overlay = config.$overlay || this.$element;
this.inputValue = '';
this.$overlay = config.$overlay || this.$element;
- this.$body = $( '<div>' )
- .addClass( 'mw-rcfilters-ui-menuSelectWidget-body' );
+ this.$body = $( '<div>' ).addClass( 'mw-rcfilters-ui-menuSelectWidget-body' );
this.footers = [];
// Parent
this.footers = [];
// Parent
@@
-210,6
+209,7
@@
.addClass( 'mw-rcfilters-ui-menuSelectWidget-view-' + viewName );
this.currentView = viewName;
.addClass( 'mw-rcfilters-ui-menuSelectWidget-view-' + viewName );
this.currentView = viewName;
+ this.scrollToTop();
this.clip();
}
};
this.clip();
}
};
@@
-321,12
+321,12
@@
case OO.ui.Keys.UP:
case OO.ui.Keys.LEFT:
// Get the next item
case OO.ui.Keys.UP:
case OO.ui.Keys.LEFT:
// Get the next item
- nextItem = this.
get
RelativeSelectableItem( currentItem, -1 );
+ nextItem = this.
find
RelativeSelectableItem( currentItem, -1 );
break;
case OO.ui.Keys.DOWN:
case OO.ui.Keys.RIGHT:
// Get the next item
break;
case OO.ui.Keys.DOWN:
case OO.ui.Keys.RIGHT:
// Get the next item
- nextItem = this.
get
RelativeSelectableItem( currentItem, 1 );
+ nextItem = this.
find
RelativeSelectableItem( currentItem, 1 );
break;
}
break;
}