Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
I'm looking to get the information from this link:
https://community.canvaslms.com/ideas/3623#comment-54447
that is posted in the solution to this article:
https://community.canvaslms.com/t5/Admin-Group/Javascript-to-disable-datepicker/m-p/108682#M3772
Can anyone help?
Solved! Go to Solution.
The direct links created on the former platform no longer link to the exact spot in a conversation, so I'm not able to identify exactly which one you need. Since that particular thread contains so much valuable information, we've moved it to the Canvas Developers group. You can now browse through all of the comments here: Disable Changing Course Start and End Dates
Is this the solution you're seeking (posted by James Jones)?
Thanks to @kona for linking the pages together. I answered it based off of what Chris had posted earlier and hadn't seen this one when I responded. When I pulled up the 14th row, it was the course format, not the one about restricting enrollments, which illustrates the problem of trying to refer by table row and Canvas changing things.
Anyway, use the + which is next sibling selector to get the right selector.
$('#course_start_at + button.ui-datepicker-trigger').prop('disabled',true);
$('#course_conclude_at + button.ui-datepicker-trigger').prop('disabled',true);
or to hide the date picker completely ...
$('#course_start_at + button.ui-datepicker-trigger').hide();
$('#course_conclude_at + button.ui-datepicker-trigger').hide();
I gave a much more thorough response on the page Disable Changing Course Start and End Dates
I am actually looking for the item linked in that comment, the link in the sentence "I gave a much more thorough response on the page Disable Changing Course Start and End Dates." which links to:
Thanks,
Karin
The direct links created on the former platform no longer link to the exact spot in a conversation, so I'm not able to identify exactly which one you need. Since that particular thread contains so much valuable information, we've moved it to the Canvas Developers group. You can now browse through all of the comments here: Disable Changing Course Start and End Dates
@Stef_retired, that's helpful. Thanks so much.
Karin
To participate in the Instructure Community, you need to sign up or log in:
Sign In
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.