Last edited fix.
@with_repo
def file_dc(request, path, repo):
errors = None
- rpath = file_path(fileid)
+ rpath = file_path(path)
if request.method == 'POST':
form = forms.DublinCoreForm(request.POST)
if(self.autosaveTimer) {
clearTimeout(self.autosaveTimer);
}
- if (data.warnings === null) {
+ if (data.warnings === null || data.warning === undefined) {
self.showPopup('save-successful');
} else {
self.showPopup('save-warn', data.warnings[0]);
$.each(options.recentFiles, function(index) {
var fileId = options.recentFiles[index].fileId;
- $('#recent-file-list ul').append('<li><a href="/editor/' + fileId + '/">' + fileId + '</a></li>');
+ $('#recent-file-list ul').append('<li><a href="{% url editor_base %}'+fileId+'">' + fileId + '</a></li>');
});
});
</script>
# Editor panels
url(r'^editor/'+PATH_SEC+'/panel/(?P<name>[a-z]+)/$', 'explorer.views.panel_view', name='panel_view'),
url(r'^editor/'+PATH_END, 'explorer.views.display_editor', name='editor_view'),
+ url(r'^editor/$', 'explorer.views.file_list', name='editor_base'),
url(r'^editor/'+PATH_SEC+'/split$', 'explorer.views.split_text'),
url(r'^editor/'+PATH_SEC+'/split-success',