when a value is selected, hide the 'time' entry field
[lhc/web/wiklou.git] / skins / common / wikibits.js
index c251c78..249f720 100644 (file)
@@ -485,3 +485,16 @@ function fillDestFilename() {
        document.fname = fname;
 }
        
+
+function considerChangingExpiryFocus() {
+       if (!document.getElementById) return;
+       var drop = document.getElementById('wpBlockExpiry');
+       if (!drop) return;
+       var field = document.getElementById('wpBlockOther');
+       if (!field) return;
+       var opt = drop.value;
+       if (opt == 'other')
+               field.style.display = '';
+       else
+               field.style.display = 'none';
+}