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
edx
edx-platform
Commits
68714d9e
Commit
68714d9e
authored
Jul 06, 2017
by
Douglas Cerna
Committed by
Alex Dusenbery
Oct 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed quality errors
parent
94bea7a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
common/static/common/js/discussion/views/discussion_inline_view.js
+1
-1
common/static/common/js/discussion/views/new_post_view.js
+11
-11
No files found.
common/static/common/js/discussion/views/discussion_inline_view.js
View file @
68714d9e
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
topicId
:
discussionId
,
topicId
:
discussionId
,
startHeader
:
this
.
startHeader
,
startHeader
:
this
.
startHeader
,
is_commentable_divided
:
response
.
is_commentable_divided
,
is_commentable_divided
:
response
.
is_commentable_divided
,
user_group_id
:
response
.
user_group_id
,
user_group_id
:
response
.
user_group_id
});
});
this
.
newPostView
.
render
();
this
.
newPostView
.
render
();
...
...
common/static/common/js/discussion/views/new_post_view.js
View file @
68714d9e
...
@@ -112,21 +112,21 @@
...
@@ -112,21 +112,21 @@
NewPostView
.
prototype
.
getGroupName
=
function
()
{
NewPostView
.
prototype
.
getGroupName
=
function
()
{
var
userGroupId
;
var
userGroupId
;
var
group
;
var
group
;
var
group
_n
ame
=
null
;
var
group
N
ame
=
null
;
if
(
this
.
course_settings
.
get
(
'is_discussion_division_enabled'
))
{
if
(
this
.
course_settings
.
get
(
'is_discussion_division_enabled'
))
{
userGroupId
=
$
(
'#discussion-container'
).
data
(
'user-group-id'
);
userGroupId
=
$
(
'#discussion-container'
).
data
(
'user-group-id'
);
if
(
!
userGroupId
)
{
if
(
!
userGroupId
)
{
userGroupId
=
this
.
user_group_id
;
userGroupId
=
this
.
user_group_id
;
}
}
group
=
this
.
course_settings
.
get
(
'groups'
).
find
(
function
(
g
roup
)
{
group
=
this
.
course_settings
.
get
(
'groups'
).
find
(
function
(
courseSettingsG
roup
)
{
return
group
.
id
==
userGroupId
;
return
courseSettingsGroup
.
id
===
String
(
userGroupId
)
;
});
});
if
(
group
)
{
if
(
group
)
{
group
_n
ame
=
group
.
name
;
group
N
ame
=
group
.
name
;
}
}
}
}
return
group
_n
ame
;
return
group
N
ame
;
};
};
NewPostView
.
prototype
.
events
=
{
NewPostView
.
prototype
.
events
=
{
...
@@ -150,15 +150,15 @@
...
@@ -150,15 +150,15 @@
}
}
};
};
NewPostView
.
prototype
.
updateVisibilityMessage
=
function
(
$target
,
force
_d
ivided
)
{
NewPostView
.
prototype
.
updateVisibilityMessage
=
function
(
$target
,
force
D
ivided
)
{
var
visEl
=
$
(
'.group-visibility .field-label-text'
);
var
$
visEl
=
$
(
'.group-visibility .field-label-text'
);
var
visTemplate
=
edx
.
HtmlUtils
.
template
(
$
(
'#new-post-visibility-template'
).
html
());
var
visTemplate
=
edx
.
HtmlUtils
.
template
(
$
(
'#new-post-visibility-template'
).
html
());
var
group
_n
ame
=
null
;
var
group
N
ame
=
null
;
if
((
$target
&&
$target
.
data
(
'divided'
))
||
force
_d
ivided
)
{
if
((
$target
&&
$target
.
data
(
'divided'
))
||
force
D
ivided
)
{
group
_n
ame
=
this
.
group_name
;
group
N
ame
=
this
.
group_name
;
}
}
edx
.
HtmlUtils
.
setHtml
(
visEl
,
visTemplate
({
group_name
:
group_n
ame
}));
edx
.
HtmlUtils
.
setHtml
(
$visEl
,
visTemplate
({
group_name
:
groupN
ame
}));
};
};
NewPostView
.
prototype
.
postOptionChange
=
function
(
event
)
{
NewPostView
.
prototype
.
postOptionChange
=
function
(
event
)
{
...
...
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