Improve delineation questions - refs #7705

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 5cbc471fba
commit aac76b4797
  1. 3
      main/exercice/hotspot_actionscript.as.php
  2. 3
      main/exercice/hotspot_actionscript_admin.as.php
  3. 3
      main/exercice/hotspot_answers.as.php
  4. 12
      main/inc/lib/javascript/hotspot/js/hotspot.js

@ -54,7 +54,8 @@ $data['lang'] = [
'Delineation' => get_lang('Delineation'),
'CloseDelineation' => get_lang('CloseDelineation'),
'Oar' => get_lang('Oar'),
'ClosePolygon' => get_lang('ClosePolygon')
'ClosePolygon' => get_lang('ClosePolygon'),
'DelineationStatus1' => get_lang('DelineationStatus1')
];
$data['image'] = $objQuestion->selectPicturePath();
$data['image_width'] = $pictureWidth;

@ -39,7 +39,8 @@ $data['lang'] = [
'Delineation' => get_lang('Delineation'),
'CloseDelineation' => get_lang('CloseDelineation'),
'Oar' => get_lang('Oar'),
'ClosePolygon' => get_lang('ClosePolygon')
'ClosePolygon' => get_lang('ClosePolygon'),
'DelineationStatus1' => get_lang('DelineationStatus1')
];
$data['image'] = $objQuestion->selectPicturePath();
$data['image_width'] = $pictureWidth;

@ -55,7 +55,8 @@ $data['lang'] = [
'Delineation' => get_lang('Delineation'),
'CloseDelineation' => get_lang('CloseDelineation'),
'Oar' => get_lang('Oar'),
'ClosePolygon' => get_lang('ClosePolygon')
'ClosePolygon' => get_lang('ClosePolygon'),
'DelineationStatus1' => get_lang('DelineationStatus1')
];
$data['image'] = $objQuestion->selectPicturePath();
$data['image_width'] = $pictureWidth;

@ -1528,6 +1528,12 @@ var DelineationQuestion = (function () {
adminSvg.render().el
);
$(config.selector).parent().prepend('\n\
<div id="delineation-messages" class="alert alert-info">\n\
<span class="fa fa-info-circle" aria-hidden="true"> <span></span>' + lang.DelineationStatus1 + '</span>\n\
</div>\n\
');
$(config.selector).parent().prepend('<div class="row"></div>');
$.each(questionInfo.hotspots, function (index, hotspotInfo) {
@ -1643,6 +1649,12 @@ var DelineationQuestion = (function () {
}),
userSvg = new UserSvg(answerModel, image);
$(config.selector).parent().prepend('\n\
<div id="delineation-messages" class="alert alert-info">\n\
<span class="fa fa-info-circle" aria-hidden="true"> <span></span>' + lang.DelineationStatus1 + '</span>\n\
</div>\n\
');
$(config.selector)
.css('width', this.width)
.append(

Loading…
Cancel
Save