aboutsummaryrefslogtreecommitdiffstats
path: root/webroot/.static/js
diff options
context:
space:
mode:
Diffstat (limited to 'webroot/.static/js')
-rw-r--r--webroot/.static/js/lxrng-funcs.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/webroot/.static/js/lxrng-funcs.js b/webroot/.static/js/lxrng-funcs.js
index a612055..5da1ef9 100644
--- a/webroot/.static/js/lxrng-funcs.js
+++ b/webroot/.static/js/lxrng-funcs.js
@@ -284,15 +284,21 @@ function load_file_finalize(content) {
var full_path = full_tree + '/' + pending_file.replace(/^\/?/, '');
var print = document.getElementById('lxr_print');
+ var save = document.getElementById('lxr_save');
var dirlist = document.getElementById('content_dir');
if (dirlist) {
print.style.display = 'none';
+ save.style.display = 'none';
}
else {
var pform = document.getElementById('print_form');
pform.action = '../' + full_tree + '/+print=' +
pending_file.replace(/^\/?/, '');
print.style.display = 'inline';
+ var sform = document.getElementById('save_form');
+ sform.action = '../' + full_tree + '/+save=' +
+ pending_file.replace(/^\/?/, '');
+ save.style.display = 'inline';
}
if (hash_check) {