File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
static/rest_framework_docs/js
templates/rest_framework_docs Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ $( document ).ready(function() {
3333 $ ( '#responseStatusCode' ) . removeClass ( function ( index , css ) {
3434 return ( css . match ( / ( ^ | \s ) l a b e l - \S + / g) || [ ] ) . join ( ' ' ) ;
3535 } ) ;
36- $ ( '#responseStatusText' ) . text ( '' ) ;
36+ $ ( '#responseStatusText' ) . hide ( ) ;
37+ $ ( '#responseStatusText' ) . find ( 'span' ) . text ( '' ) ;
3738 $ ( '#responseData' ) . html ( '' ) ;
3839 $ ( '#saveTokenButton' ) . hide ( ) ;
3940 $ ( '#responseData' ) . parent ( ) . hide ( ) ;
@@ -62,12 +63,13 @@ $( document ).ready(function() {
6263 break ;
6364 }
6465
65- $ ( '#responseData' ) . parent ( ) . show ( ) ;
66-
6766 $ ( '#responseStatusCode' ) . text ( response . status ) ;
6867 $ ( '#responseStatusCode' ) . addClass ( statusCodeClass ) ;
6968
70- $ ( '#responseStatusText' ) . text ( response . statusText . toLowerCase ( ) ) ;
69+ $ ( '#responseStatusText' ) . show ( ) ;
70+ $ ( '#responseStatusText' ) . find ( 'span' ) . text ( response . statusText . toLowerCase ( ) ) ;
71+
72+ $ ( '#responseData' ) . parent ( ) . show ( ) ;
7173 $ ( '#responseData' ) . html ( jsonPP . prettyPrint ( response . responseJSON ) ) ;
7274
7375 // Setup token store
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ <h5 class="section-title" id="headerData"><span>Data</span></h5>
128128
129129 < div class ="col-md-6 response ">
130130 < h3 > Response < span id ="responseStatusCode " class ="label status-code pull-right "> </ span > </ h3 >
131- < div > < strong > Status Text </ strong > : < span class ="status-text " id =" responseStatusText "> </ span > </ div >
131+ < div id =" responseStatusText " > < strong > Status</ strong > : < span class ="status-text "> </ span > </ div >
132132 < pre > < code id ="responseData "> </ code > </ pre >
133133 < div class ="well well-default text-center " id ="saveTokenButton ">
134134 < button class ='btn btn-info '> < i class ='fa fa-key '> </ i > Save Token</ button >
You can’t perform that action at this time.
0 commit comments