diff options
author | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2010-08-06 22:12:55 +0200 |
---|---|---|
committer | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2010-08-06 22:12:55 +0200 |
commit | 7cef7c08ebab0374f8dced2f047b5a8bf281c44c (patch) | |
tree | 77e355106206b39d311fab3849239d41e918189b /webroot | |
parent | 1f63a948e0b2de15dba55610cd62f31f15e1167b (diff) |
Add save button.
Diffstat (limited to 'webroot')
-rw-r--r-- | webroot/.static/css/lxrng.css | 5 | ||||
-rw-r--r-- | webroot/.static/js/lxrng-funcs.js | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/webroot/.static/css/lxrng.css b/webroot/.static/css/lxrng.css index acc7d92..c5a46eb 100644 --- a/webroot/.static/css/lxrng.css +++ b/webroot/.static/css/lxrng.css @@ -213,6 +213,11 @@ button.print { background: #F0F0F0; } +button.save { + border: 0; + background: #F0F0F0; +} + table.directory td.name { width: 30ex; } 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) { |