Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SondagesPro-LimeSurvey-plugin
recomputeExpression
Commits
e4d6ed9a
Commit
e4d6ed9a
authored
Feb 03, 2014
by
Denis Chenu
Browse files
Fix : show button with url parameters to get
parent
b9101938
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/recompute.js
View file @
e4d6ed9a
...
...
@@ -30,7 +30,12 @@ function addUpdateResponse()
var
jsonUrl
=
recomputeVar
.
jsonurl
;
var
aUrl
=
docUrl
.
split
(
'
/
'
);
var
surveyid
=
aUrl
[
aUrl
.
indexOf
(
"
surveyid
"
)
+
1
];
var
controllers
=
aUrl
[
aUrl
.
indexOf
(
"
admin
"
)
+
1
];
if
(
aUrl
.
indexOf
(
"
admin
"
)
>
0
){
var
controller
=
aUrl
[
aUrl
.
indexOf
(
"
admin
"
)
+
1
];
}
else
{
var
controller
=
aUrl
[
aUrl
.
indexOf
(
"
?r=admin
"
)
+
1
];
}
if
(
$
(
'
table.detailbrowsetable
'
).
length
>
0
)
// Browse one response
{
// Find the response id
...
...
@@ -78,7 +83,7 @@ function addUpdateResponse()
});
});
}
if
(
controller
s
==
'
responses
'
){
if
(
controller
==
'
responses
'
){
$
(
'
.menubar
'
).
eq
(
0
).
find
(
'
.menubar-main
'
).
find
(
"
.menubar-left:last
"
).
append
(
"
<a class='btn btn-small updateanswers'><i class='icon-refresh'></i>Update all submitted answers</a>
"
);
$
(
"
.updateanswers
"
).
click
(
function
(){
var
jsonurl
=
$
(
this
).
attr
(
'
rel
'
);
...
...
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