|
|
|
@ -364,6 +364,7 @@ class ChamiloApi |
|
|
|
public static function getQuizMarkersRollsJS() |
|
|
|
public static function getQuizMarkersRollsJS() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$webCodePath = api_get_path(WEB_CODE_PATH); |
|
|
|
$webCodePath = api_get_path(WEB_CODE_PATH); |
|
|
|
|
|
|
|
$cidReq = api_get_cidreq(true, true, 'embeddable'); |
|
|
|
$colorPalette = self::getColorPalette(false, true); |
|
|
|
$colorPalette = self::getColorPalette(false, true); |
|
|
|
|
|
|
|
|
|
|
|
return " |
|
|
|
return " |
|
|
|
@ -380,13 +381,12 @@ class ChamiloApi |
|
|
|
instance.options.markersRolls = {}; |
|
|
|
instance.options.markersRolls = {}; |
|
|
|
|
|
|
|
|
|
|
|
qMarkersRolls.forEach(function (qMarkerRoll) { |
|
|
|
qMarkersRolls.forEach(function (qMarkerRoll) { |
|
|
|
var url = '{$webCodePath}exercise/exercise_submit.php?{{ _p.web_cid_query }}&' |
|
|
|
var url = '{$webCodePath}exercise/exercise_submit.php?$cidReq&' |
|
|
|
+ $.param({ |
|
|
|
+ $.param({ |
|
|
|
exerciseId: qMarkerRoll[1], |
|
|
|
exerciseId: qMarkerRoll[1], |
|
|
|
learnpath_id: 0, |
|
|
|
learnpath_id: 0, |
|
|
|
learnpath_item_id: 0, |
|
|
|
learnpath_item_id: 0, |
|
|
|
learnpath_item_view_id: 0, |
|
|
|
learnpath_item_view_id: 0 |
|
|
|
origin: 'embeddable' |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
instance.options.markersRolls[qMarkerRoll[0]] = url; |
|
|
|
instance.options.markersRolls[qMarkerRoll[0]] = url; |
|
|
|
|