From fa3009df79107a45cfc6b23f6385f5df93fb255c Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 14 Oct 2015 20:03:25 -0500 Subject: [PATCH] Simulate touch events for Matching Draggable - refs #7877 --- main/admin/skills.php | 1 + main/exercice/admin.php | 1 + main/exercice/exercise_submit.php | 1 + main/social/skills_tree.php | 1 + 4 files changed, 4 insertions(+) diff --git a/main/admin/skills.php b/main/admin/skills.php index d5bdafc7bd..fb7a1f42d1 100755 --- a/main/admin/skills.php +++ b/main/admin/skills.php @@ -18,6 +18,7 @@ if (api_get_setting('allow_skills_tool') != 'true') { //Adds the JS needed to use the jqgrid $htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js'); +$htmlHeadXtra[] = api_get_js('jqueryui-touch-punch/jquery.ui.touch-punch.min.js'); $htmlHeadXtra[] = api_get_js('skills.js'); $skill = new Skill(); diff --git a/main/exercice/admin.php b/main/exercice/admin.php index 2d5f06c4e3..a2f74259ac 100755 --- a/main/exercice/admin.php +++ b/main/exercice/admin.php @@ -336,6 +336,7 @@ function multiple_answer_true_false_onchange(variable) { '; +$htmlHeadXtra[] = api_get_js('jqueryui-touch-punch/jquery.ui.touch-punch.min.js'); $htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js'); $template = new Template(); diff --git a/main/exercice/exercise_submit.php b/main/exercice/exercise_submit.php index 0ce8122ae7..0950bcdcc5 100755 --- a/main/exercice/exercise_submit.php +++ b/main/exercice/exercise_submit.php @@ -50,6 +50,7 @@ if ($showGlossary) { $htmlHeadXtra[] = api_get_js('jquery.highlight.js'); } +$htmlHeadXtra[] = api_get_js('jqueryui-touch-punch/jquery.ui.touch-punch.min.js'); $htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js'); $htmlHeadXtra[] = api_get_js('d3/jquery.xcolor.js'); diff --git a/main/social/skills_tree.php b/main/social/skills_tree.php index fbf8346658..0091fce4d9 100755 --- a/main/social/skills_tree.php +++ b/main/social/skills_tree.php @@ -18,6 +18,7 @@ if (api_get_setting('allow_skills_tool') != 'true') { //Adds the JS needed to use the jqgrid $htmlHeadXtra[] = api_get_jqgrid_js(); +$htmlHeadXtra[] = api_get_js('jqueryui-touch-punch/jquery.ui.touch-punch.min.js'); $htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js'); $htmlHeadXtra[] = api_get_js('skills.js');