mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Fix for Issue #2720
This commit is contained in:
@@ -313,8 +313,12 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
var $preview = $('#preview');
|
var $preview = $('#preview');
|
||||||
var $path = $('#path');
|
var $path = $('#path');
|
||||||
|
|
||||||
$this.addClass("media-select-active");
|
// Remove "selected" class from elements.
|
||||||
$this.closest("img").addClass("active");
|
$('.e-media-select').removeClass('media-select-active');
|
||||||
|
|
||||||
|
// Add "selected" class to clicked element.
|
||||||
|
$this.addClass('media-select-active');
|
||||||
|
$this.closest('img').addClass('active');
|
||||||
|
|
||||||
if(bbcode == "file") // not needed for Tinymce
|
if(bbcode == "file") // not needed for Tinymce
|
||||||
{
|
{
|
||||||
@@ -540,10 +544,9 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
$('#e-modal-loading', window.parent.document).show();
|
$('#e-modal-loading', window.parent.document).show();
|
||||||
$('iframe', window.parent.document).attr('scrolling', 'no'); // hide the scrollbar.
|
$('iframe', window.parent.document).attr('scrolling', 'no'); // hide the scrollbar.
|
||||||
|
|
||||||
|
// TODO use loading screen instead?
|
||||||
$(id).hide('slide', {direction: outDir}, 1500, function ()
|
$(id).hide('slide', {direction: outDir}, 1500, function ()
|
||||||
{
|
{
|
||||||
});
|
|
||||||
|
|
||||||
$.get(src, function (data)
|
$.get(src, function (data)
|
||||||
{
|
{
|
||||||
$(id).html(data);
|
$(id).html(data);
|
||||||
@@ -554,6 +557,10 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
{
|
{
|
||||||
$('#e-modal-loading', window.parent.document).hide();
|
$('#e-modal-loading', window.parent.document).hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// We need to attach behaviors to the newly loaded contents.
|
||||||
|
e107.attachBehaviors();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user