Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
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
outils
question2answer
Commits
ff847ff0
Commit
ff847ff0
authored
6 years ago
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid naming conflicts with the version parameter
parent
c4aab63b
dev
…
3113-openbar-authentification
3241-delete-all-the-question
3242-password-removed
3414-no-change-mail
3414-stop-mail-send
main
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
qa-global.js
qa-content/qa-global.js
+6
-6
No files found.
qa-content/qa-global.js
View file @
ff847ff0
...
...
@@ -152,16 +152,16 @@ function qa_favorite_click(elem)
return
false
;
}
function
qa_ajax_post
(
operation
,
params
,
callback
,
v
ersion
)
function
qa_ajax_post
(
operation
,
params
,
callback
,
apiV
ersion
)
{
if
(
typeof
(
v
ersion
)
===
'undefined'
)
{
v
ersion
=
0
;
if
(
typeof
(
apiV
ersion
)
===
'undefined'
)
{
apiV
ersion
=
0
;
}
$
.
extend
(
params
,
{
qa
:
'ajax'
,
qa_operation
:
operation
,
qa_root
:
qa_root
,
qa_request
:
qa_request
,
version
:
v
ersion
});
$
.
extend
(
params
,
{
qa
:
'ajax'
,
qa_operation
:
operation
,
qa_root
:
qa_root
,
qa_request
:
qa_request
,
apiVersion
:
apiV
ersion
});
$
.
post
(
qa_root
,
params
,
function
(
response
)
{
if
(
v
ersion
===
0
)
{
if
(
apiV
ersion
===
0
)
{
var
header
=
'QA_AJAX_RESPONSE'
;
var
headerpos
=
response
.
indexOf
(
header
);
...
...
@@ -173,7 +173,7 @@ function qa_ajax_post(operation, params, callback, version)
callback
(
response
);
}
},
v
ersion
===
0
?
'text'
:
'json'
apiV
ersion
===
0
?
'text'
:
'json'
).
fail
(
function
(
jqXHR
)
{
if
(
jqXHR
.
readyState
>
0
)
qa_ajax_error
();
...
...
This diff is collapsed.
Click to expand it.
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