filebrowser fixs, use it in comment textareas
move filebrowser js to single file document filebrowser usage replace "onclick" for comment style buttons with data-* and move logic to main.js use filebrowser to insert images in comments
This commit is contained in:
parent
70b7de39a7
commit
52f9465578
10 changed files with 210 additions and 108 deletions
|
@ -142,11 +142,11 @@ function enableOnUser(){
|
|||
**/
|
||||
|
||||
/* callback */
|
||||
$('body').on('fbrowser.image', function(e, filename, embedcode) {
|
||||
$('body').on('fbrowser.image', function(e, filename, embedcode, id) {
|
||||
$.colorbox.close();
|
||||
addeditortext(embedcode);
|
||||
});
|
||||
$('body').on('fbrowser.file', function(e, filename, embedcode) {
|
||||
$('body').on('fbrowser.file', function(e, filename, embedcode, id) {
|
||||
$.colorbox.close();
|
||||
addeditortext(embedcode);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue