Fix #2103 : WebUI: Sorting by name is case-sensitive
This commit is contained in:
parent
0676d7e2dc
commit
84bc2e78bc
|
@ -265,7 +265,7 @@
|
|||
idProperty: 'id',
|
||||
fields: [
|
||||
{name: 'queue', sortType: Deluge.data.SortTypes.asQueuePosition},
|
||||
{name: 'name'},
|
||||
{name: 'name', sortType: Deluge.data.SortTypes.asName},
|
||||
{name: 'total_size', type: 'int'},
|
||||
{name: 'state'},
|
||||
{name: 'progress', type: 'float'},
|
||||
|
|
|
@ -48,5 +48,9 @@ Deluge.data.SortTypes = {
|
|||
|
||||
asQueuePosition: function(value) {
|
||||
return (value > -1) ? value : Number.MAX_VALUE;
|
||||
},
|
||||
|
||||
asName: function(value) {
|
||||
return String(value).toLowerCase();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,8 @@ Deluge.data.Torrent = Ext.data.Record.create([{
|
|||
type: 'int'
|
||||
}, {
|
||||
name: 'name',
|
||||
type: 'string'
|
||||
type: 'string',
|
||||
sortType: Deluge.data.SortTypes.asName
|
||||
}, {
|
||||
name: 'total_size',
|
||||
type: 'int'
|
||||
|
|
Loading…
Reference in New Issue