--- loncom/interface/loncommon.pm 2014/03/17 02:45:25 1.1182 +++ loncom/interface/loncommon.pm 2014/03/18 01:29:49 1.1184 @@ -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.1184 2014/03/18 01:29:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -10936,7 +10936,7 @@ sub check_for_upload { if (($current_disk_usage + $filesize) > $disk_quota){ my $msg = '
'. &mt('Unable to upload [_1]. (size = [_2] kilobytes). Disk quota will be exceeded.',''.$fname.'',$filesize).'
'. - ''.&mt('Disk quota is [_1] kilobytes. Your current disk usage is [_2] kilobytes.',$disk_quota,$current_disk_usage).'
'; return ('will_exceed_quota',$msg); } elsif ($found_file) { if ($locked_file) { @@ -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; +} + // ]]>