diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-01 16:45:42 +0400 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-01 16:45:42 +0400 |
commit | e8d8d12cbd481119a5094d805cfd50b2223a677e (patch) | |
tree | 382dff988f4183572fd422274eb025878e7f6559 | |
parent | f2b9796e92a5c64f115b6d6e6c3a3a1fb329e088 (diff) |
correct file path in breadcrumbs
-rw-r--r-- | js/editor.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/editor.js b/js/editor.js index c3aa3ee..bd46afe 100644 --- a/js/editor.js +++ b/js/editor.js @@ -66,7 +66,7 @@ function setSyntaxMode(ext) { function showControls(dir, filename, writeable) { // Loads the control bar at the top. - OC.Breadcrumb.push(filename, '#'); + OC.Breadcrumb.show(dir, filename, '#'); // Load the new toolbar. var editorbarhtml = '<div id="editorcontrols" style="display: none;">'; if (writeable) { @@ -265,7 +265,7 @@ function showFileEditor(dir, filename) { // Fades out the editor. function hideFileEditor() { - OC.Breadcrumb.pop(); + OC.Breadcrumb.show($('#dir').val()); if ($('#editor').attr('data-edited') == 'true') { // Hide, not remove $('#editorcontrols,#editor').hide(); @@ -295,7 +295,7 @@ function reopenEditor() { $('#controls .last').not('#breadcrumb_file').removeClass('last'); $('#editor').show(); $('#editorcontrols').show(); - OC.Breadcrumb.push($('#editor').attr('data-filename') + ' *', '#'); + OC.Breadcrumb.show($('#editor').attr('data-dir'), $('#editor').attr('data-filename') + ' *', '#'); document.title = $('#editor').attr('data-filename') + ' * - ownCloud'; is_editor_shown = true; giveEditorFocus(); |