Revision 342fa48b snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
330 330
        dictRemoveFile: "snf-Remove file",
331 331
    };
332 332

  
333

  
334
    $('.main .files').magnificPopup({
335
        delegate: 'a.show.image',
336
        type: 'image',
337
        tLoading: 'Loading image #%curr%...',
338
        mainClass: 'mfp-img-mobile',
339
        gallery: {
340
            enabled: true,
341
            navigateByImgClick: true,
342
            preload: [0,1] // Will preload 0 - before current, and 1 after the current image
343
        },
344
        image: {
345
            tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
346
            titleSrc: function(item) {
347
                return item.el.data('title');
348
            }
349
        }
350
    });
351

  
333 352
})
334 353

  
335 354

  

Also available in: Unified diff