aboutsummaryrefslogtreecommitdiffstats
path: root/webroot/.static/js/lxrng-funcs.js
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2010-08-06 22:12:55 +0200
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2010-08-06 22:12:55 +0200
commit7cef7c08ebab0374f8dced2f047b5a8bf281c44c (patch)
tree77e355106206b39d311fab3849239d41e918189b /webroot/.static/js/lxrng-funcs.js
parent1f63a948e0b2de15dba55610cd62f31f15e1167b (diff)
Add save button.
Diffstat (limited to 'webroot/.static/js/lxrng-funcs.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) {