mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Media-Manager bbcode correction.
This commit is contained in:
parent
c27c5ea403
commit
0ed759d0c7
@ -935,6 +935,7 @@ class media_admin_ui extends e_admin_ui
|
||||
$file = (substr($cat,-5) == "_file") ? TRUE : FALSE;
|
||||
$mes = e107::getMessage();
|
||||
$mes->addDebug("For:".$cat);
|
||||
$mes->addDebug("Bbcode: ".$this->getQuery('bbcode'));
|
||||
|
||||
|
||||
if($file)
|
||||
@ -1128,7 +1129,7 @@ class media_admin_ui extends e_admin_ui
|
||||
|
||||
$text .= "<div style='text-align:right;padding:5px'>
|
||||
|
||||
<button type='submit' class='btn btn-success submit e-dialog-save e-dialog-close' data-target='".$this->getQuery('tagid')."' name='save_image' value='Save it' >
|
||||
<button type='submit' class='btn btn-success submit e-dialog-save e-dialog-close' data-bbcode='".$options['bbcode']."' data-target='".$this->getQuery('tagid')."' name='save_image' value='Save it' >
|
||||
<span>Save</span>
|
||||
</button>
|
||||
<button type='submit' class='btn submit e-dialog-close' name='cancel_image' value='Cancel' >
|
||||
|
@ -56,7 +56,7 @@ define("LANHELP_41", "Font Size...");
|
||||
define("LANHELP_42", "Select Image...");
|
||||
define("LANHELP_43", "Select Download File...");
|
||||
define("LANHELP_44", "Click to open/close emoticon dialog ...");
|
||||
define("LANHELP_45", "Insert image from directory: ");
|
||||
define("LANHELP_45", "Insert image from Media-Manager");
|
||||
define("LANHELP_46", "* No files found in: ");
|
||||
|
||||
define("LANHELP_47", "Insert flash: [flash=width,height]http://www.example.com/file.swf[/flash]");
|
||||
|
@ -6,9 +6,9 @@ $(document).ready(function()
|
||||
var newval = $('#bbcode_holder').val();
|
||||
var target = $(this).attr('data-target');
|
||||
var bbcode = $(this).attr('data-bbcode'); // TinyMce/Textarea insert mode
|
||||
|
||||
|
||||
if(!target || !bbcode){ return true; }
|
||||
|
||||
|
||||
$('#' + target, window.top.document).atCaret('insert', newval); // http://code.google.com/p/jquery-at-caret/wiki/GettingStarted
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user