1. Daniel Greenfeld
  2. transifex

Commits

Andreas Loupasakis  committed 548dca8

Show 25 entries in Lotte by default.

  • Participants
  • Parent commits d6ed40a
  • Branches default

Comments (0)

Files changed (2)

File transifex/addons/lotte/templates/translate.html

View file
  • Ignore whitespace
             "aaSorting": [[ 0, "asc" ]],
             "bServerSide": true,
             "bProcessing": true,
+            "iDisplayLength": 25,
             {% if resource %}
                 "sAjaxSource": "{%  url stringset_handling project.slug resource.slug target_language.code %}",
             {% else %} 

File transifex/addons/lotte/views.py

View file
  • Ignore whitespace
                 source_strings=source_strings.order_by(SORTING_DICT[col]).reverse()
 
     # for items displayed
-    dlength = int(request.POST.get('iDisplayLength','10'))
+    dlength = int(request.POST.get('iDisplayLength','25'))
     dstart = int(request.POST.get('iDisplayStart','0'))
     # for statistics
     total = source_strings.count()