Skip to content

Commit

Permalink
MDL-52229 tool_lp: Handle hidden templates/frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
taboubi authored and Frederic Massart committed Apr 18, 2016
1 parent ed549db commit 964afa9
Show file tree
Hide file tree
Showing 25 changed files with 226 additions and 170 deletions.
2 changes: 1 addition & 1 deletion admin/tool/lp/amd/build/competencyactions.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion admin/tool/lp/amd/build/competencypicker.min.js

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

1 change: 0 additions & 1 deletion admin/tool/lp/amd/src/competencyactions.js
Expand Up @@ -376,7 +376,6 @@ define(['jquery',
idnumber: relatedTarget.idnumber,
description: relatedTarget.description,
descriptionformat: relatedTarget.descriptionformat,
visible: relatedTarget.visible,
ruletype: config.ruletype,
ruleoutcome: config.ruleoutcome,
ruleconfig: config.ruleconfig
Expand Down
5 changes: 4 additions & 1 deletion admin/tool/lp/amd/src/competencypicker.js
Expand Up @@ -80,6 +80,8 @@ define(['jquery',
Picker.prototype._singleFramework = false;
/** @type {Boolean} Do we allow multi select? */
Picker.prototype._multiSelect = true;
/** @type {Boolean} Do we allow to display hidden framework? */
Picker.prototype._onlyVisible = true;

/**
* Hook to executed after the view is rendered.
Expand Down Expand Up @@ -324,7 +326,8 @@ define(['jquery',
{ methodname: 'tool_lp_list_competency_frameworks', args: {
sort: 'shortname',
context: { contextid: self._pageContextId },
includes: self._pageContextIncludes
includes: self._pageContextIncludes,
onlyvisible: self._onlyVisible
}}
])[0];
}
Expand Down

0 comments on commit 964afa9

Please sign in to comment.