Skip to content
Snippets Groups Projects
Commit 04c55547 authored by anisa kusumadewi's avatar anisa kusumadewi
Browse files

index.js version increased

parent 05cf1dcd
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf.js?ver=00002"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf_viewer.js?ver=00002"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/textclipper.js"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00017"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00018"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00004"));
// Pass parameters from PHP to JavaScript.
......
......@@ -1939,8 +1939,7 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
var commentVisibility= read_visibility_of_checkbox();
var isquestion = 0; // this is a normal comment, so it is not a question
let commentTextContent = extract_text_from_html(commentText.value.trim());
let commentContentImg = commentForm.querySelector('img.atto_image_button_text-bottom');
if(commentTextContent.length < 2 && !commentContentImg){
if(commentTextContent.length < 2){
//should be more than one character, otherwise it should not be saved.
notification.addNotification({
message: M.util.get_string('min2Chars','pdfannotator'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment