<script type="text/javascript" charset="utf-8">
$(function() {
$('#id_folders').change(function() {
- $('#images').load('/images/' + $('#id_folders').val() + '/', function() {
+ $('#images').load('{% url folder_image_ajax %}' + $('#id_folders').val() + '/', function() {
$('#images').data('lastScroll', -1000);
});
});
url(r'^file/(?P<path>[^/]+)/$', 'explorer.views.file_xml', name='file_xml'),
url(r'^html/(?P<path>[^/]+)/$', 'explorer.views.file_html', name='file_html'),
url(r'^images/(?P<folder>[^/]+)/$', 'explorer.views.folder_images', name='folder_image'),
+ url(r'^images/$', 'explorer.views.folder_images', {'folder': '.'}, name='folder_image_ajax'),
# Admin panel
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),