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
328b5b3d
Commit
328b5b3d
authored
Apr 10, 2013
by
Vasyl Nakvasiuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use postWithPrefix + $.param
parent
82209850
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
common/lib/xmodule/xmodule/js/src/word_cloud/word_cloud_main.js
+3
-11
No files found.
common/lib/xmodule/xmodule/js/src/word_cloud/word_cloud_main.js
View file @
328b5b3d
...
...
@@ -20,12 +20,9 @@ WordCloudMain.prototype = {
// Send the data to the server as an AJAX request. Attach a callback that will
// be fired on server's response.
ajaxSettings
=
{
"data"
:
JSON
.
stringify
(
data
),
"type"
:
"POST"
,
"contentType"
:
'application/json; charset=utf-8'
,
"dataType"
:
'json'
,
"success"
:
function
(
response
)
{
$
.
postWithPrefix
(
_this
.
ajax_url
+
'/'
+
'submit'
,
$
.
param
(
data
),
function
(
response
)
{
if
(
(
response
.
hasOwnProperty
(
'status'
)
!==
true
)
||
(
typeof
response
.
status
!==
'string'
)
||
...
...
@@ -35,11 +32,6 @@ WordCloudMain.prototype = {
}
_this
.
showWordCloud
(
response
);
}
};
$
.
ajaxWithPrefix
(
_this
.
ajax_url
+
'/'
+
'submit'
,
ajaxSettings
);
},
// End-of: 'submitAnswer': function (answer, answerEl) {
...
...
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