In some cases you may only wish to perform a given action if the page is currently checked out to the current user. The SharePoint object model in 2013 has a simple method for determining the checked-out state of the current page.
var isCheckedOut = false;
if (typeof (PageState) != "undefined" && PageState) {
isCheckedOut = PageState.ItemIsCheckedOutToCurrentUser == "1";
}
No comments:
Post a Comment