Changeset 3200:e2bcf42f7288 for admin
- Timestamp:
- 03/01/16 07:26:07 (9 years ago)
- Branch:
- 2.9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_post.js
r3139 r3200 53 53 // Post preview 54 54 $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 } 68 70 } 69 71
Note: See TracChangeset
for help on using the changeset viewer.