1
0
Fork 0

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:
Fabrixxm 2015-07-29 11:30:04 +02:00
commit 52f9465578
10 changed files with 210 additions and 108 deletions

View file

@ -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);
});