File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -927,10 +927,11 @@ var APC = (function () {
927
927
*/
928
928
function createReferenceOptions ( ranges ) {
929
929
return ranges . map ( function ( range ) {
930
+ range = range . map ( Number ) ;
930
931
return $ ( '<option>' )
931
932
. text ( range . join ( '-' ) )
932
- . val ( ( + range [ 0 ] + + range [ 1 ] ) / 2 )
933
- } )
933
+ . val ( ( 1 + range [ 0 ] + range [ 1 ] ) / 2 )
934
+ } ) ;
934
935
}
935
936
936
937
@@ -1020,7 +1021,7 @@ var APC = (function () {
1020
1021
var statuses = {
1021
1022
503 : 'The service that the request is trying to reach is currently down. Please try again later.' ,
1022
1023
404 : 'The request returned with a response of "' + statusText + '". Please try again later.' ,
1023
- 400 : xhr . response
1024
+ 400 : xhr . responseText
1024
1025
}
1025
1026
1026
1027
displayErrors ( [ statuses [ xhr . status ] || 'The request has failed for an unknown reason' ] )
You can’t perform that action at this time.
0 commit comments