Explorar o código

Behavior of is-time-specific in add entry moes

Vijayakrishnan Krishnan %!s(int64=5) %!d(string=hai) anos
pai
achega
9f4e185b6f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      public/js/mc.js

+ 4 - 0
public/js/mc.js

@@ -88,6 +88,10 @@ $(document).ready(function() {
     }
     initFastLoad();
 });
+function enableTimeSpecificFields(_checked, _valueClass, _rangeClass) {
+    $('.' + _valueClass).prop('disabled', _checked);
+    $('.' + _rangeClass).prop('disabled', !_checked);
+}
 
 var fastCache = {};