Commit ad9ddd97 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Added control of the columns menu expand action.

A global variable has been created, menu_scroll, and
by default it's set to true.

The menu expand action is just performed if this variable
is true. On function table_expand(), we check this variable
to decide if we open or not the collumns menu.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 1d1dd92c
var selected;
var menu_scroll = true;
function populate(){
var tbls = document.getElementsByTagName('table');
......@@ -66,9 +67,11 @@ function table_expand(tbID){
if (element.style.display=='none'){
element.style.display='';
image.innerHTML='<img src="img/expandUP.jpg" />';
menu_scroll = true;
} else {
element.style.display='none';
image.innerHTML='<img src="img/expandDOWN.jpg" />';
menu_scroll = false;
}
}
......@@ -152,7 +155,8 @@ function hide_menu(e, element){
}
function show_menu(elementID){
document.getElementById(elementID).className='select_cols';
if (menu_scroll)
document.getElementById(elementID).className='select_cols';
}
function setCookie(name, value, expireDays){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment