From c4350162703e6da5cf5029ff5ba4e534ba9d0680 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 18 Jan 2019 09:26:09 +0100 Subject: [PATCH] Fix $.inArray condition See https://github.com/chamilo/chamilo-lms/commit/c7b881eecc33fc75b4091cc670c72a7f770b9ab5?diff=unified --- main/template/default/learnpath/view.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/template/default/learnpath/view.tpl b/main/template/default/learnpath/view.tpl index 9306ef995e..07099fee09 100644 --- a/main/template/default/learnpath/view.tpl +++ b/main/template/default/learnpath/view.tpl @@ -387,7 +387,7 @@ $(document).ready(function () { $('iframe#content_id').on('load', function () { var arr = ['link', 'sco']; - if (!$.inArray(olms.lms_item_type, arr)) { + if ($.inArray(olms.lms_item_type, arr) == -1) { {{ frame_ready }} } });