Dotclear

Changeset 3368:bb25979b0371 for admin/js


Ignore:
Timestamp:
10/29/16 07:39:57 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Replace old jQuery modal js code by the Magnific-Popup responsive jQuery plugin ( http://dimsemenov.com/plugins/magnific-popup/, MIT Licence)

Location:
admin/js
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_post.js

    r3241 r3368  
    6363          if (window.location.protocol == $preview_url.substring(0,window.location.protocol.length)) { 
    6464               // Open preview in a modal iframe 
    65                $('#post-preview').modalWeb($(window).width()-40,$(window).height()-40); 
     65               $('#post-preview').magnificPopup({ 
     66                    type:'iframe', 
     67                    iframe: { 
     68                         patterns: { 
     69                              dotclear: { 
     70                                   index: $preview_url, 
     71                                   id: 1, 
     72                                   src: $preview_url 
     73                              } 
     74                         } 
     75                    } 
     76               }); 
    6677          } else { 
    6778               // Open preview on antother window 
Note: See TracChangeset for help on using the changeset viewer.

Sites map