1
0

Added "clean" new option for using backend popups (disabled by default) as a per-user option

References #183
This commit is contained in:
Garvin Hicking
2014-06-17 09:50:26 +02:00
parent 3079caf246
commit f5693b0b86
69 changed files with 229 additions and 88 deletions

View File

@ -599,7 +599,7 @@
}
serendipity.closeCommentPopup = function() {
{if $use_popups}
{if $use_backendpopups}
parent.self.close();
{else}
window.parent.parent.$.magnificPopup.close();
@ -607,7 +607,7 @@
}
serendipity.openPopup = function(url) {
{if $use_popups}
{if $use_backendpopups}
window.open(url,
'ImageSel',
'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');
@ -1072,7 +1072,7 @@ $(function() {
}
// Show category selector
{if $use_popups}
{if $use_backendpopups}
if($('#serendipityEntry').length > 0) {
$('#select_category').click(function(e) {
$('#edit_entry_category').toggleClass('mfp-hide');
@ -1200,7 +1200,7 @@ $(function() {
$('.comments_reply').click(function(e) {
e.preventDefault();
{if $use_popups}
{if $use_backendpopups}
window.open(this.href, 'CommentForm', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1').focus();
{else}
$(this).magnificPopup({ type:'iframe' });
@ -1272,7 +1272,7 @@ $(function() {
});
// Show further links
{if $use_popups}
{if $use_backendpopups}
if($('#dashboard').length > 0) {
$('.toggle_links').click(function(e) {
e.preventDefault();
@ -1286,7 +1286,7 @@ $(function() {
{/if}
// Media file actions
{if $use_popups}
{if $use_backendpopups}
$('.media_fullsize').click(function(e) {
e.preventDefault();
var $el = $(this);