Skip to content

Commit

Permalink
Missing form arez
Browse files Browse the repository at this point in the history
1. Fix form area missing due to DOM changes
2. Dirty fields highlighted with red border
  • Loading branch information
rajyraman committed Feb 11, 2019
1 parent f0b3c15 commit 532ad5d
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 59 deletions.
4 changes: 2 additions & 2 deletions app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"https://*/*"
],
"web_accessible_resources" : ["Sdk.Soap.min.js","levelup.extension.js"],
"version" : "3.3.0",
"version_name" : "3.3.0",
"version" : "3.3.1",
"version_name" : "3.3.1",
"manifest_version" : 2
}
2 changes: 0 additions & 2 deletions app/pages/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@
<div class="links" id="environmentDetails">Org Settings</div>
<div class="links" id="myRoles">My Roles</div>
<div class="links" id="allUserRoles">Users &amp; Roles</div>
<div class="links" id="lightUpNavigation">Enable new navigation</div>
<div class="links" id="classicNavigation">Disable new navigation</div>
</div>
</div>
<script src="options.js"></script>
Expand Down
1 change: 1 addition & 0 deletions app/scripts/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module LevelUp{
if (contentPanels && contentPanels.length > 0) {
let formDocument = contentPanels[0].contentWindow.document;
if(formDocument.querySelector("#crmFormHeaderTop")
|| document.querySelector('div[data-id="editFormRoot"]')
|| document.querySelector("#editFormRoot")) {
response(types.AreaType.Form);
}
Expand Down
1 change: 1 addition & 0 deletions app/scripts/inject/levelup.forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ module LevelUp {
var dirtyAttribute = c.getAttribute();
if (!dirtyAttribute || !dirtyAttribute.getIsDirty()) return;
var attributeNode = this.utility.formWindow.document.getElementById(dirtyAttribute.getName()) ||
this.utility.formDocument.querySelector(`div[data-id="${dirtyAttribute.getName()}-FieldSectionItemContainer"]`) ||
this.utility.formDocument.querySelector(`label[id$="${dirtyAttribute.getName()}-field-label"]`);
if(!attributeNode) return;

Expand Down
94 changes: 40 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Levelup-for-Dynamics-CRM-365",
"private": true,
"version": "3.3.0",
"version": "3.3.1",
"description": "Quickly perform advanced/hidden actions in Dynamics CRM/365, without bookmarklets.",
"scripts": {
"clean": "gulp clean --vendor=chrome & gulp clean --vendor=firefox & gulp clean --vendor=edge",
Expand Down

0 comments on commit 532ad5d

Please sign in to comment.