Explorar el Código

try to recalculate silder max for other fields on change

andre hace 4 años
padre
commit
74fad04ed8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      templates/client/default/assets/js/layers-ui.js

+ 2 - 2
templates/client/default/assets/js/layers-ui.js

@@ -7321,8 +7321,8 @@ var rangeSlider = function () {
         key: 'updateSlider',
         value: function updateSlider(evnet) {
             this.sliderInstance.slider("value", event.target.value);
-            $('input[name^="outputadditionalDiskSize"]').not(this).attr("max", this.config.max - this.value);
-            $('input[name="disk"]').not(this).attr("max", this.config.max - this.value);
+            $('input[name^="outputadditionalDiskSize"]').attr("max", this.config.max - this.value);
+            $('input[name="disk"]').attr("max", this.config.max - this.value);
         }
     }], [{
         key: 'init',