Dotclear

Changeset 3200:e2bcf42f7288 for admin


Ignore:
Timestamp:
03/01/16 07:26:07 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.9
Message:

Fix editor missing on new entry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_post.js

    r3139 r3200  
    5353     // Post preview 
    5454     $preview_url = $('#post-preview').attr('href'); 
    55      if (window.location.protocol == 'http:' || $preview_url.substring(0,7) != 'http://') { 
    56           // Open preview in a modal iframe 
    57           // ie (blog uri on admin uri): https on https, http on http, https on http 
    58           $('#post-preview').modalWeb($(window).width()-40,$(window).height()-40); 
    59      } 
    60      else 
    61      { 
    62           // Open preview on antother window 
    63           // ie (blog uri on admin uri): http on https 
    64           $('#post-preview').click(function(e) { 
    65                e.preventDefault(); 
    66                window.open($(this).attr('href')); 
    67           }); 
     55     if ($preview_url) { 
     56          if (window.location.protocol == 'http:' || $preview_url.substring(0,7) != 'http://') { 
     57               // Open preview in a modal iframe 
     58               // ie (blog uri on admin uri): https on https, http on http, https on http 
     59               $('#post-preview').modalWeb($(window).width()-40,$(window).height()-40); 
     60          } 
     61          else 
     62          { 
     63               // Open preview on antother window 
     64               // ie (blog uri on admin uri): http on https 
     65               $('#post-preview').click(function(e) { 
     66                    e.preventDefault(); 
     67                    window.open($(this).attr('href')); 
     68               }); 
     69          } 
    6870     } 
    6971 
Note: See TracChangeset for help on using the changeset viewer.

Sites map