Disabled functionality added #59
+12
−1
@@ -264,6 +264,9 @@ | ||
// Close opened dropdowns | ||
$(".dropdownjs > ul > li").attr("tabindex", -1); | ||
+ if (e.target.getAttribute('disabled')) { |
corientdev
Feb 18, 2017
Contributor
Same thing is used at many places in script. I just copied it from above.
@@ -264,6 +264,9 @@ | ||
// Close opened dropdowns | ||
$(".dropdownjs > ul > li").attr("tabindex", -1); | ||
+ if (e.target.getAttribute('disabled')) { | ||
+ return; |
@@ -384,6 +391,11 @@ | ||
$option.addClass("selected"); | ||
} | ||
+ if ($this.prop("disabled")) { | ||
+ $option.attr("disabled", true); | ||
+ $option.addClass("disabled"); |
FezVrasta
Feb 18, 2017
Owner
Why do you need a class? It should be enough to use the :disabled
CSS selector to style it I think?
corientdev
added
some commits
Feb 20, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
resolves #17