From ac7a52562f2308fb142708f675366a611cf2d4f8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 8 Dec 2010 02:31:18 +0100 Subject: [PATCH] use hashurl for view --- pandora/archive/admin.py | 2 +- static/js/pandora.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/archive/admin.py b/pandora/archive/admin.py index 6a7763f8..4e73e88f 100644 --- a/pandora/archive/admin.py +++ b/pandora/archive/admin.py @@ -14,7 +14,7 @@ class FileAdmin(admin.ModelAdmin): admin.site.register(models.File, FileAdmin) class InstanceAdmin(admin.ModelAdmin): - search_fields = ['name', 'volume', 'volume__name'] + search_fields = ['name', 'folder', 'volume__name'] #form = ArchiveFileAdminForm admin.site.register(models.Instance, InstanceAdmin) diff --git a/static/js/pandora.js b/static/js/pandora.js index b55eb053..dc2199a0 100755 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -1274,7 +1274,7 @@ app.constructMainMenu = function() { app.$ui.list.sortList(id, operator); } else if (data.id == 'viewmovies') { var view = data.checked[0].id; - app.url('/?v='+view); + app.url('/#view='+view); } }, click: function(event, data) {