File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ $(function() {
2525
2626 codeblockWrapper . children ( ) . appendTo ( overlay ) ;
2727
28- $ ( this ) . html ( '<i class="icon-fullscreen"> </i> Close' ) ;
28+ $ ( "#overlay .expandcode" ) . addClass ( 'btn-danger' ) ;
29+ $ ( this ) . html ( '<i class="icon-remove icon-white"> </i> Close' ) ;
2930
3031 //prevent the body from scrolling
3132 $ ( document . body ) . css ( "overflow" , "hidden" ) ;
@@ -36,8 +37,8 @@ $(function() {
3637 var codeId = overlay . children ( ".code" ) . attr ( "id" ) . replace ( 'code_' , '' ) ;
3738 var codeblockWrapper = $ ( '#wrapper_' + codeId ) ;
3839
40+ $ ( "#overlay .expandcode" ) . removeClass ( 'btn-danger' ) ;
3941 $ ( "#overlay .expandcode" ) . html ( '<i class="icon-fullscreen"> </i> Fullscreen' ) ;
40-
4142 overlay . children ( ) . appendTo ( codeblockWrapper ) ;
4243 $ ( document . body ) . css ( "overflow" , "auto" ) ;
4344 overlay . remove ( ) ;
You can’t perform that action at this time.
0 commit comments