Added attribute to order App.ControllerGenericIndex 'DESC'.
This commit is contained in:
parent
ad1626b405
commit
96fa5b94c7
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,10 @@ class App.ControllerGenericIndex extends App.Controller
|
||||||
return item
|
return item
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if @defaultOrder
|
||||||
|
if @defaultOrder == 'DESC'
|
||||||
|
objects = objects.reverse()
|
||||||
|
|
||||||
@html App.view('generic/admin/index')(
|
@html App.view('generic/admin/index')(
|
||||||
head: @pageData.objects
|
head: @pageData.objects
|
||||||
notes: @pageData.notes
|
notes: @pageData.notes
|
||||||
|
|
Loading…
Reference in a new issue