File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ <h2>Getting started</h2>
8484 < strong > prevTxt</ strong > : "Previous", // "Previous" button text
8585 < strong > nextTxt</ strong > : "Next" // "Next" button text
8686};</ code > </ pre >
87-
87+ < p > It is also possible to close SuperBox! from a script, by calling the < code > $.superbox.close() </ code > function. </ p >
8888 < div id ="mode-image ">
8989 < h2 > Picture mode</ h2 >
9090 < p > Displays a box containing a picture.</ p >
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ <h2>Mise en route</h2>
7777 < strong > prevTxt</ strong > : "Previous", // Texte du bouton "previous"
7878 < strong > nextTxt</ strong > : "Next" // Texte du bouton "Next"
7979};</ code > </ pre >
80+ < p > Il est également possible de fermer SuperBox! depuis un script, en appelant la fonction < code > $.superbox.close()</ code > .</ p >
8081
8182 < div id ="mode-image ">
8283 < h2 > Mode image</ h2 >
Original file line number Diff line number Diff line change 334334 showBox ( ) ;
335335 } ) ;
336336 } ) ;
337- }
337+ } ,
338+
339+ // Close SuperBox!
340+ close : hideAll
338341 } ) ;
339342
340343
You can’t perform that action at this time.
0 commit comments