mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Closes #327 - filepicker() problem.
This commit is contained in:
@@ -3,10 +3,11 @@ $(document).ready(function()
|
||||
|
||||
$(".e-dialog-save").live("click", function(){// FIXME TODO missing caret , text selection overwrite etc.
|
||||
|
||||
var newval = $('#bbcode_holder').val();
|
||||
var newval = $('#bbcode_holder').val();
|
||||
var target = $(this).attr('data-target');
|
||||
var bbcode = $(this).attr('data-bbcode'); // TinyMce/Textarea insert mode
|
||||
|
||||
if(!target){ return true; }
|
||||
if(!target || !bbcode){ return true; }
|
||||
|
||||
$('#' + target, window.top.document).atCaret('insert', newval); // http://code.google.com/p/jquery-at-caret/wiki/GettingStarted
|
||||
|
||||
@@ -169,6 +170,8 @@ $(document).ready(function()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$('#src').attr('value',src); // working old
|
||||
$('#preview').attr('src',preview); // working old
|
||||
|
||||
|
Reference in New Issue
Block a user