Fix sorting by size for Project->Images table

To fix it the proper sorting function should be used in tablesorter
jquery plugin, this is achieved by marking the column with correct
'data-type' attribute value.

(cherry picked from commit 8b02edc643)

Closes-Bug: #1413266
Change-Id: Idc7dfab9cef5a32166e9ecdba77ccaf09170db15
This commit is contained in:
Timur Sufiev 2015-01-21 20:05:01 +03:00 committed by Kieran Spear
parent 4404736679
commit 8a717d90a6

View File

@ -244,6 +244,7 @@ class ImagesTable(tables.DataTable):
disk_format = tables.Column(get_format, verbose_name=_("Format"))
size = tables.Column("size",
filters=(filters.filesizeformat,),
attrs=({"data-type": "size"}),
verbose_name=_("Size"))
class Meta: