SharePoint Calendar Event trick

  1. By default “All Day Event” checked using JavaScript

 

http://~~~~~/jquery.js

$(function() {

// checks All Day Event
//$(“span[title=’All Day Event’] > input”).attr(“checked”,”checked”);

//instead check the box, better to call the click event
if( !$(“span[title=’All Day Event’] > input”).attr(“checked”) ){
$(“span[title=’All Day Event’] > input”).click();
}
//hide the fields
$(“tr:has(span[title=’All Day Event’])”).not(“tr:has(tr)”).hide();
$(“tr:has(span[title=’Recurrence’])”).not(“tr:has(tr)”).hide();

});

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: