2 <div class="images-wrap">
4 <p>Aby zobaczyć obrazki wybierz folder poniżej:</p>
5 <p><select name="folders" class="id_folders">
6 <option value="" selected="selected">-- Wybierz folder z obrazkami --</option>
7 <option value="andersen_basnie">andersen_basnie</option>
12 <script type="text/javascript" charset="utf-8">
15 function resizeEditor(event, panel) {
16 var panel = panel || event.data.panel;
17 $('.images-wrap', panel).height($(panel).height());
20 panel(function(event, panel) {
21 $('.id_folders', panel).change(function() {
22 $('.images', panel).load('{% url folder_image_ajax %}' + $('.id_folders', panel).val() + '/', function() {
23 $('.images-wrap', panel).data('lazyload:lastCheckedScrollTop', -10000);
26 $('.images-wrap', panel).lazyload('.image-box', {threshold: 640 * 10, scrollTreshold: 640 * 5});
28 $(window).bind('resize', {'panel': panel}, resizeEditor);
29 resizeEditor(null, panel);
30 }, function(event, panel) {