Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
eefb6eab
Commit
eefb6eab
authored
May 25, 2017
by
aamishbaloch
Committed by
Aamish Baloch
Oct 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
YONK-643 Hyperlink is showing as text for learners is fixed.
parent
80126fc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
common/static/common/js/discussion/views/discussion_thread_list_view.js
+8
-0
common/static/karma_common.conf.js
+7
-1
No files found.
common/static/common/js/discussion/views/discussion_thread_list_view.js
View file @
eefb6eab
...
@@ -165,6 +165,7 @@
...
@@ -165,6 +165,7 @@
$currentElement
=
this
.
$
(
'.forum-nav-thread[data-id='
+
threadId
+
']'
);
$currentElement
=
this
.
$
(
'.forum-nav-thread[data-id='
+
threadId
+
']'
);
active
=
$currentElement
.
has
(
'.forum-nav-thread-link.is-active'
).
length
!==
0
;
active
=
$currentElement
.
has
(
'.forum-nav-thread-link.is-active'
).
length
!==
0
;
$currentElement
.
replaceWith
(
$content
);
$currentElement
.
replaceWith
(
$content
);
this
.
convertMath
(
$content
);
this
.
showMetadataAccordingToSort
();
this
.
showMetadataAccordingToSort
();
if
(
this
.
supportsActiveThread
&&
active
)
{
if
(
this
.
supportsActiveThread
&&
active
)
{
this
.
setActiveThread
(
threadId
);
this
.
setActiveThread
(
threadId
);
...
@@ -215,12 +216,19 @@
...
@@ -215,12 +216,19 @@
return
this
;
return
this
;
};
};
DiscussionThreadListView
.
prototype
.
convertMath
=
function
(
element
)
{
if
(
typeof
element
!==
'undefined'
)
{
DiscussionUtil
.
convertMath
(
element
.
find
(
'.thread-preview-body'
));
}
};
DiscussionThreadListView
.
prototype
.
renderThreads
=
function
()
{
DiscussionThreadListView
.
prototype
.
renderThreads
=
function
()
{
var
$content
,
thread
,
i
,
len
;
var
$content
,
thread
,
i
,
len
;
this
.
$
(
'.forum-nav-thread-list'
).
empty
();
this
.
$
(
'.forum-nav-thread-list'
).
empty
();
for
(
i
=
0
,
len
=
this
.
displayedCollection
.
models
.
length
;
i
<
len
;
i
++
)
{
for
(
i
=
0
,
len
=
this
.
displayedCollection
.
models
.
length
;
i
<
len
;
i
++
)
{
thread
=
this
.
displayedCollection
.
models
[
i
];
thread
=
this
.
displayedCollection
.
models
[
i
];
$content
=
this
.
renderThread
(
thread
);
$content
=
this
.
renderThread
(
thread
);
this
.
convertMath
(
$content
);
this
.
$
(
'.forum-nav-thread-list'
).
append
(
$content
);
this
.
$
(
'.forum-nav-thread-list'
).
append
(
$content
);
}
}
this
.
showMetadataAccordingToSort
();
this
.
showMetadataAccordingToSort
();
...
...
common/static/karma_common.conf.js
View file @
eefb6eab
...
@@ -54,7 +54,13 @@ var options = {
...
@@ -54,7 +54,13 @@ var options = {
{
pattern
:
'common/js/xblock/runtime.v1.js'
,
included
:
true
},
{
pattern
:
'common/js/xblock/runtime.v1.js'
,
included
:
true
},
{
pattern
:
'common/js/discussion/**/*.js'
,
included
:
true
},
{
pattern
:
'common/js/discussion/**/*.js'
,
included
:
true
},
{
pattern
:
'js/capa/src/**/*.js'
,
included
:
true
},
{
pattern
:
'js/capa/src/**/*.js'
,
included
:
true
},
{
pattern
:
'js/src/**/*.js'
,
included
:
true
}
{
pattern
:
'js/src/**/*.js'
,
included
:
true
},
{
pattern
:
'../../lms/static/js/Markdown.Converter.js'
,
included
:
true
},
{
pattern
:
'../../lms/static/js/Markdown.Editor.js'
,
included
:
true
},
{
pattern
:
'../../lms/static/js/Markdown.Sanitizer.js'
,
included
:
true
},
{
pattern
:
'../../lms/static/js/split.js'
,
included
:
true
},
{
pattern
:
'../../lms/static/coffee/src/customwmd.js'
,
included
:
true
},
{
pattern
:
'//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
included
:
true
}
// eslint-disable-line max-len
],
],
specFiles
:
[
specFiles
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment