reporter cleanup -- ready for mini-release (I think)
[Evergreen.git] / Open-ILS / src / reporter / templates / select_sorter.js
index ddd57a1..e195313 100644 (file)
@@ -1,5 +1,16 @@
 <script language="javascript">
 
+function show_hide_params (sel) {
+       var span = document.getElementById('hide-param:' + sel.name);
+       if (sel.options[sel.selectedIndex].textContent.match(/\(*\)/)) {
+               span.style.visibility = 'visible';
+       } else {
+               span.style.visibility = 'hidden';
+       }
+       
+       return true;
+}
+
 function field_add_remove (x) {
        var field = x.name;
        if (x.checked) {