Commits

petraszd  committed d66585e

Bug fixes (thanks tatarkin.evg);

  • Participants
  • Parent commits 2b44220

Comments (0)

Files changed (3)

File eagproject/eag-static/js/site-tree.js

             $('SaveOrder').addEvent('click', function () {
                 sortable.detach();
                 $('Tree').getChildren().each(function (li) {
-                    li.set('id', li.get('id') + '-' + li.get('class'));
+                    li.set('id', li.get('id') + ' ' + li.get('class'));
                 });
                 $('ReorderData').set('value', sortable.serialize().join('&'));
                 $('ReorderForm').submit();

File eagproject/eagadmin/models/pages.py

 
 def choices():
     for p in get_all():
-        yield (str(p.key()), str(p))
+        yield (str(p.key()), unicode(p))
 
 def get_all():
     root = get_root()

File eagproject/eagadmin/views.py

     except KeyError:
         raise Http404()
 
-    neworder = [p.split('-') for p in serialized.split('&')]
+    neworder = [p.split(' ') for p in serialized.split('&')]
     pages.reorder([(key, int(level)) for key, level in neworder])
 
     return redirect('eagadmin:index')