From 378df4c7ea51125e9235a1605b2aad9eb9eb8b8f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 16 Mar 2016 20:10:54 +0100 Subject: Show / hide advanced search (refs #3069) --- ishtar_common/static/js/ishtar.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ishtar_common/static/js') diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 7918f742f..9af5cf2b0 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -187,3 +187,11 @@ function closeAllWindows(){ jQuery("#window > div").hide("slow"); jQuery("#window").html(""); } + +function show_hide_flex(id){ + if ($(id).is(':hidden')){ + $(id).css('display', 'flex'); + } else { + $(id).hide(); + } +} -- cgit v1.2.3