Last change
on this file since a55bb54 was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added departments, edited users and added user settings
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[194a359] | 1 | 'use strict';
|
---|
| 2 | $(document).ready(function () {
|
---|
| 3 |
|
---|
| 4 | $('.image-popup').magnificPopup({
|
---|
| 5 | type: 'image',
|
---|
| 6 | zoom: {
|
---|
| 7 | enabled: true,
|
---|
| 8 | duration: 300,
|
---|
| 9 | easing: 'ease-in-out',
|
---|
| 10 | opener: function(openerElement) {
|
---|
| 11 | return openerElement.is('img') ? openerElement : openerElement.find('img');
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
| 14 | });
|
---|
| 15 |
|
---|
| 16 | var magnificPopupGalleryConfig = {
|
---|
| 17 | type: 'image',
|
---|
| 18 | gallery: {
|
---|
| 19 | enabled: true
|
---|
| 20 | },
|
---|
| 21 | zoom: {
|
---|
| 22 | enabled: true,
|
---|
| 23 | duration: 300,
|
---|
| 24 | easing: 'ease-in-out',
|
---|
| 25 | opener: function(openerElement) {
|
---|
| 26 | return openerElement.is('img') ? openerElement : openerElement.find('img');
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 | };
|
---|
| 30 |
|
---|
| 31 | $('.image-popup-gallery-item').magnificPopup(magnificPopupGalleryConfig);
|
---|
| 32 |
|
---|
| 33 | $('.chat-app-wrapper .chat-app .chat-body .chat-body-messages .message-items .message-item:not(.outgoing-message).message-item-media ul a').magnificPopup(magnificPopupGalleryConfig);
|
---|
| 34 |
|
---|
| 35 | $('.chat-app-wrapper .chat-app .chat-body .chat-body-messages .message-items .message-item.outgoing-message.message-item-media ul a').magnificPopup(magnificPopupGalleryConfig);
|
---|
| 36 |
|
---|
| 37 | }); |
---|
Note:
See
TracBrowser
for help on using the repository browser.