1
var cur_visible = null;
3
function toggleVisibility(section_id) {
4
section = document.getElementById(section_id);
1
var autorefresh_possible = true;
3
$(document).ready(function(){
7
$.fn.popupUnique = function(animshow, animhide) {
8
if ( this.is(':visible') ) {
11
autorefresh_possible = true;
13
autorefresh_possible = false;
6
if ( section.style.display != 'block' ) {
7
section.style.display = 'block';
9
section.style.display = 'none';
14
function toggleVisibilityUnique(section_id)
17
cur_visible.style.display = 'none';
19
section = document.getElementById(section_id);
20
if ( cur_visible == section ) {
25
toggleVisibility(section_id);
27
if ( section.style.display == 'block' )
28
cur_visible = section;
34
function toggleFilteredColumnVisibility(column_id) {
35
columns = new Array("classification", "source", "target", "analyzer");
37
for ( var i=0; i < columns.length; i++ ) {
38
popup = document.getElementById(columns[i]);
40
if ( column_id == columns[i] ) {
41
if ( popup.style.display != 'block' ) {
42
popup.style.display = 'block';
44
popup.style.display = 'none';
47
popup.style.display = 'none';
52
function checkBoxByName(name, value) {
53
for (var i = 0; i < document.forms[0].elements.length; i++ ) {
54
var elem = document.forms[0].elements[i];
56
if ( elem.name == name ) {
25
$.fn.check = function(mode){
26
return this.each(function() { this.checked = mode; } );
29
$(".popup_menu_toggle").click(function(){
30
$(this).next().popupUnique(function(data){data.show('fast')}, function(data){data.hide('fast')});
34
if ( navigator.userAgent.indexOf("Konqueror") != -1 )
35
$(".popup_menu").hide();