Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kmay
Community Member

How do I get an article out of cold storage?

Jump to solution

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?

 

Labels (1)
0 Kudos
1 Solution

Accepted Solutions

@kmay 

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

View solution in original post

0 Kudos
4 Replies
Stef_retired
Community Team
Community Team

@kmay 

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

Hi @Stef_retired 

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:

https://community.canvaslms.com/t5/Colder-Storage/Disable-Changing-Course-Start-and-End-Dates/m-p/31...

Thanks,

Karin

@kmay 

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

0 Kudos

@Stef_retired, that's helpful. Thanks so much.

Karin