Skip to content

Commit

Permalink
Updated icons and configuration page
Browse files Browse the repository at this point in the history
  • Loading branch information
MscrmTools committed Sep 14, 2016
1 parent fa7b4a7 commit 2b3174d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 19 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion McTools.Parameters.WebResources/mctools_/Pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<div><input id="showParameters" onclick="showParameters();" class="button" type="button" value="" /></div><br />
<div><input id="showBlog" onclick="showBlog();" class="button" type="button" value="" /></div><br />
<div><input id="showDonation" onclick="showDonation();" class="button" type="button" value="" /></div><br />
<div><input id="showCodePlex" onclick="showCodePlex();" class="button" type="button" value="" /></div><br />
<div><input id="showCodePlex" onclick="showProject();" class="button" type="button" value="" /></div><br />
<br/>
<br/>
Credits:
<br/>Icons made by <a href="http://www.freepik.com/" target="_blank">Freepik</a> from <a href="http://www.flaticon.com" target="_blank">www.flaticon.com</a>
</body>
</html>
32 changes: 17 additions & 15 deletions McTools.Parameters.WebResources/mctools_/Scripts/Parameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,26 @@

// FONCTION: loadForm
// DESCRIPTION: Gère les traitements au chargement du formulaire
function loadForm() {
if (Xrm.Page.ui.getFormType() > 1) {
Xrm.Page.getControl("mctools_logicalname").setDisabled(true);
}
function loadForm()
{
if (Xrm.Page.ui.getFormType() > 1) {
Xrm.Page.getControl("mctools_logicalname").setDisabled(true);
}

Xrm.Page.getAttribute("mctools_valuetype").fireOnChange();
Xrm.Page.getControl("mctools_globalvalue").setVisible(false);
Xrm.Page.getAttribute("mctools_valuetype").fireOnChange();
Xrm.Page.getControl("mctools_globalvalue").setVisible(false);
}

// FONCTION: copyDisplayNameToLogicalName
// DESCRIPTION: Copie le contenu du nom d'affichage dans le nom logique
function copyDisplayNameToLogicalName() {
var displayName = Xrm.Page.getAttribute("mctools_name");
var logicalName = Xrm.Page.getAttribute("mctools_logicalname");

if (displayName != null && displayName.getValue() != null && displayName.getValue().length > 0) {
if (logicalName.getValue() == null || logicalName.getValue().length == 0) {
logicalName.setValue(displayName.getValue());
}
}
function copyDisplayNameToLogicalName()
{
var displayName = Xrm.Page.getAttribute("mctools_name");
var logicalName = Xrm.Page.getAttribute("mctools_logicalname");

if (displayName != null && displayName.getValue() != null && displayName.getValue().length > 0) {
if (logicalName.getValue() == null || logicalName.getValue().length == 0) {
logicalName.setValue(displayName.getValue());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function showDonation() {
}

function showProject() {
window.open("https://applicationparameters.codeplex.com");
window.open("https://github.com/MscrmTools/ApplicationParameters");
}

function loadLabels() {
Expand All @@ -27,7 +27,7 @@ function loadLabels() {
labels.push({ id: "showParameters", label: "Cliquez ici pour afficher la liste des param\350tres" });
labels.push({ id: "showBlog", label: "Cliquez ici pour afficher le blog MscrmTools" });
labels.push({ id: "showDonation", label: "Cliquez ici pour afficher la page de sponsoring" });
labels.push({ id: "showCodePlex", label: "Cliquez ici pour afficher le projet CodePlex de cette solution" });
labels.push({ id: "showCodePlex", label: "Cliquez ici pour afficher le projet Github de cette solution" });
}
break;
default:
Expand All @@ -37,7 +37,7 @@ function loadLabels() {
labels.push({ id: "showParameters", label: "Click here to display parameters list" });
labels.push({ id: "showBlog", label: "Click here to display MscrmTools blog" });
labels.push({ id: "showDonation", label: "Click here to display sponsoring page" });
labels.push({ id: "showCodePlex", label: "Click here to display CodePlex project page for this solution" });
labels.push({ id: "showCodePlex", label: "Click here to display Github project page for this solution" });
}
break;
}
Expand Down

0 comments on commit 2b3174d

Please sign in to comment.