1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Fix for filepicker() not displaying the chosen file after selection.

This commit is contained in:
Cameron
2013-11-01 19:00:27 -07:00
parent 611d469eed
commit f1ad895101
2 changed files with 9 additions and 3 deletions

View File

@@ -130,6 +130,8 @@ $(document).ready(function()
$(".e-media-select").live("click", function(){
// console.log(this);
// alert('hi');
var id = $(this).attr('data-id');
var target = $(this).attr('data-target');
@@ -170,7 +172,7 @@ $(document).ready(function()
//alert(bbpath);
}
$('#src').attr('value',src); // working old
@@ -195,7 +197,11 @@ $(document).ready(function()
$('#html_holder').val(preview);
$('#path').attr('value',path);
}
else
else if(type == 'file')
{
preview = name;
}
else // image
{
eMediaAttribute(this);
preview = $('#html_holder').val();