mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Made client side sorting of missions and mods case insensitive
This commit is contained in:
parent
6dffd9c551
commit
f265b02770
@ -3,7 +3,7 @@ var Backbone = require('backbone')
|
|||||||
var Mission = require('app/models/mission')
|
var Mission = require('app/models/mission')
|
||||||
|
|
||||||
module.exports = Backbone.Collection.extend({
|
module.exports = Backbone.Collection.extend({
|
||||||
comparator: 'name',
|
comparator: function(item) { item.get('name').toLowerCase() },
|
||||||
model: Mission,
|
model: Mission,
|
||||||
url: '/api/missions/'
|
url: '/api/missions/'
|
||||||
})
|
})
|
||||||
|
@ -3,7 +3,7 @@ var Backbone = require('backbone')
|
|||||||
var Mod = require('app/models/mod')
|
var Mod = require('app/models/mod')
|
||||||
|
|
||||||
module.exports = Backbone.Collection.extend({
|
module.exports = Backbone.Collection.extend({
|
||||||
comparator: 'name',
|
comparator: function(item) { item.get('name').toLowerCase() },
|
||||||
model: Mod,
|
model: Mod,
|
||||||
url: '/api/mods/'
|
url: '/api/mods/'
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user