I uploaded a javascript with a web part to my Project Server 2013 environment, and included the web part in one of the project's PDP, which contains the following code:
var $puidElement = $("[GUID='" + ProjectUniqueGUID + "']");
if ($puidElement.is("input"))
Would this return true if the project is edit mode? If not, how can I detect that the project is in Edit mode using JavaScript?