|
|
@ -53,10 +53,10 @@ define(['taskbar'], function(taskbar) {
|
|
|
|
|
|
|
|
|
|
|
|
function initializeFileReader() {
|
|
|
|
function initializeFileReader() {
|
|
|
|
jQuery.event.props.push( "dataTransfer" );
|
|
|
|
jQuery.event.props.push( "dataTransfer" );
|
|
|
|
console.log(config);
|
|
|
|
|
|
|
|
if(window.FileReader) {
|
|
|
|
if(window.FileReader) {
|
|
|
|
var drop = $('.post-window .imagedrop');
|
|
|
|
var drop = $('.post-window .imagedrop'),
|
|
|
|
var textarea = $('.post-window textarea');
|
|
|
|
textarea = $('.post-window textarea');
|
|
|
|
|
|
|
|
|
|
|
|
textarea.on('dragenter', function() {
|
|
|
|
textarea.on('dragenter', function() {
|
|
|
|
|
|
|
|
|
|
|
@ -90,7 +90,6 @@ define(['taskbar'], function(taskbar) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -124,6 +123,7 @@ define(['taskbar'], function(taskbar) {
|
|
|
|
|
|
|
|
|
|
|
|
document.body.insertBefore(composer.postContainer, taskbar);
|
|
|
|
document.body.insertBefore(composer.postContainer, taskbar);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(config.imgurClientIDSet)
|
|
|
|
initializeFileReader();
|
|
|
|
initializeFileReader();
|
|
|
|
|
|
|
|
|
|
|
|
socket.on('api:composer.push', function(threadData) {
|
|
|
|
socket.on('api:composer.push', function(threadData) {
|
|
|
|