You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a line in selectHours which is causing me a lot of grief....
$target = $(id)
The primary issue is that is supposed to be a pointer to the instance of the timepicker that is configured on a jquery element. In other words, I do something like this:
Instead of timepicker internalizing which element has been configured as a timepicker, it just internalizes the selector. It then uses the $target = $(id) line in selectHours() to find the right element. Not only is this inefficient, but it also prevents my code above from working.
I'm not even sure how to fix this as I'm guessing the problem is rampant in the codebase... I see it in selectMinutes() and a few other methods.
The text was updated successfully, but these errors were encountered:
I tried to address your issue a few times and had to rollback every time because I could not get it to work properly.
You are right that this behaviour is deeply integrated in the code and not easily modified.
I suggest you fix this by not having two elements with the same ID as every ID in a document must be unique according to html specifications.
@fgelinas Forget for a moment that I am using duplicate ID's. Just the fact that you're searching multiple times the entire DOM for the ID is a really broken design. It is as silly as someone writing jquery code that looks like this:
There is a line in selectHours which is causing me a lot of grief....
$target = $(id)
The primary issue is that is supposed to be a pointer to the instance of the timepicker that is configured on a jquery element. In other words, I do something like this:
Instead of timepicker internalizing which element has been configured as a timepicker, it just internalizes the selector. It then uses the
$target = $(id)
line in selectHours() to find the right element. Not only is this inefficient, but it also prevents my code above from working.I'm not even sure how to fix this as I'm guessing the problem is rampant in the codebase... I see it in selectMinutes() and a few other methods.
The text was updated successfully, but these errors were encountered: