--- loncom/interface/loncommon.pm 2014/03/17 02:45:25 1.1182 +++ loncom/interface/loncommon.pm 2014/03/17 13:38:57 1.1183 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1182 2014/03/17 02:45:25 raeburn Exp $ +# $Id: loncommon.pm,v 1.1183 2014/03/17 13:38:57 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -15054,11 +15054,12 @@ sub timebased_select_form { =item * &js_changer() Create script tag containing Javascript used to submit course search form -when course type or domain is changed. +when course type or domain is changed, and also to hide 'Searching ...' on +page load completion for page showing search result. Inputs: None -Returns: markup containing updateFilters() javascript function. +Returns: markup containing updateFilters() and hideSearching() javascript functions. Side Effects: None @@ -15074,6 +15075,14 @@ function updateFilters(caller) { } document.filterpicker.submit(); } + +function hideSearching() { + if (document.getElementById('searching')) { + document.getElementById('searching').style.display = 'none'; + } + return; +} + // ]]>