Prechádzať zdrojové kódy

Behavior of is-time-specific in add entry moes

Vijayakrishnan Krishnan 5 rokov pred
rodič
commit
9f4e185b6f
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  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 = {};