-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix]ON OFF switch in Microsoft Edge #1049 #1066
Conversation
… bring disabled state also minor html fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
About !important
... codacy can become happy by replacing other selectors with input:enabled
and changing label
to div
+ click proxy.
function createCheckboxes() { | ||
|
||
$("input[type='checkbox']").each(function() { | ||
|
||
var text_on = $(this).attr("on") || "YES"; | ||
var text_off = $(this).attr("off") || "NO"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relay switch now has NO YES instead of OFF ON, maybe alternative version of this should be used? or check new for
attr value in js or css
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry dude, I'm not a huge fan of hacks and workarounds so no div + proxies ). I generally like keeping things as simple as they can be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... does it not work only because label does the proxy by itself internally?:)
Relays are ok now. Plus, I should've thought of rules order issue...
code/html/custom.js
Outdated
$(":checkbox", line).prop('checked', data[i]).attr("data", i) | ||
.prop("id", "relay" + i) | ||
.on("change", function (event) { | ||
console.log("sending message"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover logging?
improved CSS to comply with CODACY rules
changed the look and feel of the checkboxes to resolve Edge issue + brought disabled state for them
also minor html fixes
ON OFF switch in Microsoft Edge #1049