[WebUI] Case-insensitive sort for plugins list
This commit is contained in:
parent
fa309d0d18
commit
6c233da2ff
@ -51,7 +51,7 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
|||||||
store: new Ext.data.ArrayStore({
|
store: new Ext.data.ArrayStore({
|
||||||
fields: [
|
fields: [
|
||||||
{name: 'enabled', mapping: 0},
|
{name: 'enabled', mapping: 0},
|
||||||
{name: 'plugin', mapping: 1}
|
{name: 'plugin', mapping: 1, sortType: 'asUCString'},
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
columns: [{
|
columns: [{
|
||||||
@ -147,7 +147,10 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
|||||||
|
|
||||||
updatePlugins: function() {
|
updatePlugins: function() {
|
||||||
var onGotAvailablePlugins = function(plugins) {
|
var onGotAvailablePlugins = function(plugins) {
|
||||||
this.availablePlugins = plugins;
|
this.availablePlugins = plugins.sort(function (a, b) {
|
||||||
|
return a.toLowerCase().localeCompare(b.toLowerCase());
|
||||||
|
});
|
||||||
|
|
||||||
deluge.client.core.get_enabled_plugins({
|
deluge.client.core.get_enabled_plugins({
|
||||||
success: onGotEnabledPlugins,
|
success: onGotEnabledPlugins,
|
||||||
scope: this
|
scope: this
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user