Browse Source

Added support for disable the toggle

pull/843/head
SumanRajSharma 8 years ago
parent
commit
5ee43bf5c0
  1. 9
      dist/js/ratchet.js

9
dist/js/ratchet.js vendored

@ -989,6 +989,9 @@
if (!toggle) {
return;
}
if(toggle.classList.contains('disabled')) {
return;
}
var handle = toggle.querySelector('.toggle-handle');
var toggleWidth = toggle.clientWidth;
@ -1009,6 +1012,9 @@
if (!toggle) {
return;
}
if(toggle.classList.contains('disabled')) {
return;
}
var handle = toggle.querySelector('.toggle-handle');
var current = e.touches[0];
@ -1041,6 +1047,9 @@
if (!toggle) {
return;
}
if(toggle.classList.contains('disabled')) {
return;
}
var handle = toggle.querySelector('.toggle-handle');
var toggleWidth = toggle.clientWidth;

Loading…
Cancel
Save