aboutsummaryrefslogtreecommitdiff
path: root/www/inc/global.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/inc/global.js')
-rw-r--r--www/inc/global.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/www/inc/global.js b/www/inc/global.js
index ff8ec21..048af85 100644
--- a/www/inc/global.js
+++ b/www/inc/global.js
@@ -65,15 +65,12 @@ function toggle_comment() {
}
}
-function toggle_exif() {
- var exif_table = document.getElementById('exif_table');
- var exif_line = document.getElementById('exif_line');
- if(exif_table.style.display == 'none') {
- exif_table.style.display = 'block';
- exif_line.style.display = 'none';
+function toggle_div(classname) {
+ var div = document.getElementById(classname);
+ if(div.style.display == 'none') {
+ div.style.display = 'block';
} else {
- exif_table.style.display = 'none';
- exif_line.style.display = 'block';
+ div.style.display = 'none';
}
}