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">
14 function resizeEditor(event, panel) {
15 var panel = panel || event.data.panel;
16 $('.images-wrap', panel).height($(panel).height());
19 panel(function(event, panel) {
20 $('.id_folders', panel).change(function() {
21 $('.images', panel).load('{% url folder_image_ajax %}' + $('.id_folders', panel).val() + '/', function() {
22 $('.images-wrap', panel).data('lazyload:lastCheckedScrollTop', -10000);
25 $('.images-wrap', panel).lazyload('.image-box', {threshold: 640 * 10, scrollTreshold: 640 * 5});
27 $(window).bind('resize', {'panel': panel}, resizeEditor);
28 resizeEditor(null, panel);
29 }, function(event, panel) {