Skip to content

Commit

Permalink
MDL-53657 tool_lp: Dialog box opens twice in the path
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 2f411bc commit 9af8f0e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion admin/tool/lp/templates/competency_summary.mustache
Expand Up @@ -13,7 +13,7 @@
<p>{{{competency.description}}}</p>
{{/competency.description}}
{{#comppath}}
<span class="pull-left">{{#str}}path, tool_lp{{/str}} </span>{{> tool_lp/competency_path }}
<span class="pull-left">{{#str}}path, tool_lp{{/str}}&nbsp;</span>{{> tool_lp/competency_path }}
{{/comppath}}
{{#showrelatedcompetencies}}
{{> tool_lp/related_competencies }}
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/lp/templates/course_competencies_page.mustache
Expand Up @@ -65,7 +65,7 @@
<p>{{{competency.description}}}</p>
{{/competency}}
{{#comppath}}
<span class="pull-left">{{#str}}path, tool_lp{{/str}}</span>{{> tool_lp/competency_path }}
<span class="pull-left">{{#str}}path, tool_lp{{/str}}&nbsp;</span>{{> tool_lp/competency_path }}
{{/comppath}}
{{#usercompetency}}
{{#grade}}
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/lp/templates/plan_page.mustache
Expand Up @@ -122,7 +122,7 @@
<em>{{competency.idnumber}}</em>
{{#comppath}}
<br>
<span class="pull-left">{{#str}}path, tool_lp{{/str}}</span>{{> tool_lp/competency_path }}
<span class="pull-left">{{#str}}path, tool_lp{{/str}}&nbsp;</span>{{> tool_lp/competency_path }}
{{/comppath}}
</td>
{{#plan.iscompleted}}
Expand Down
6 changes: 6 additions & 0 deletions admin/tool/lp/templates/related_competencies.mustache
Expand Up @@ -22,3 +22,9 @@
{{#str}}nocrossreferencedcompetencies, tool_lp{{/str}}
{{/relatedcompetencies}}
</div>
{{#js}}
require(['tool_lp/competencydialogue'], function(Compdialogue) {
var competencydialogue = new Compdialogue({includerelated : true});
competencydialogue.watch('[data-region="relatedcompetencies"]');
});
{{/js}}
7 changes: 0 additions & 7 deletions admin/tool/lp/templates/user_competency_summary.mustache
Expand Up @@ -101,10 +101,3 @@
</dd>
</dl>
</div>

{{#js}}
require(['tool_lp/competencydialogue'], function(Compdialogue) {
var competencydialogue = new Compdialogue({includerelated : true});
competencydialogue.watch('[data-region="competency-summary"]');
});
{{/js}}
Expand Up @@ -132,10 +132,3 @@
</dl>
</div>
{{/usercompetencysummary}}

{{#js}}
require(['tool_lp/competencydialogue'], function(Compdialogue) {
var competencydialogue = new Compdialogue({includerelated : true});
competencydialogue.watch('[data-region="competency-summary"]');
});
{{/js}}
Expand Up @@ -126,9 +126,3 @@
</div>
{{/usercompetencysummary}}

{{#js}}
require(['tool_lp/competencydialogue'], function(Compdialogue) {
var competencydialogue = new Compdialogue({includerelated : true});
competencydialogue.watch('[data-region="competency-summary"]');
});
{{/js}}

0 comments on commit 9af8f0e

Please sign in to comment.