Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RateXBlock
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
RateXBlock
Commits
e40a2937
Commit
e40a2937
authored
Oct 08, 2015
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default display name. Thank you doesn't vanish
parent
51b05499
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
rate/rate.py
+6
-0
rate/static/js/src/rate.js
+3
-2
No files found.
rate/rate.py
View file @
e40a2937
...
...
@@ -85,6 +85,12 @@ class RateXBlock(XBlock):
user_freeform
=
String
(
default
=
""
,
scope
=
Scope
.
user_state
,
help
=
"Feedback"
)
display_name
=
String
(
display_name
=
"Display Name"
,
default
=
"Provide Feedback"
,
scopde
=
Scope
.
settings
)
def
resource_string
(
self
,
path
):
"""Handy helper for getting resources from our kit."""
data
=
pkg_resources
.
resource_string
(
__name__
,
path
)
...
...
rate/static/js/src/rate.js
View file @
e40a2937
...
...
@@ -45,10 +45,11 @@ function RateXBlock(runtime, element) {
});
$
(
'.rate_freeform_area'
,
element
).
change
(
function
(
eventObject
)
{
$
(
'.rate_thank_you'
,
element
).
css
(
'visibility'
,
'hidden'
);
var
freeform
=
eventObject
.
currentTarget
.
value
;
Logger
.
log
(
"edx.ratexblock.freeform_feedback"
,
{
"freeform"
:
freeform
})
/*$.ajax({
/*
$('.rate_thank_you', element).css('visibility','hidden');
$.ajax({
type: "POST",
url: feedback_handler,
data: JSON.stringify({"freeform": freeform}),
...
...
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