|
|
@ -645,7 +645,11 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fileSelects.on('change', function () { |
|
|
|
// Head is sometimes slower
|
|
|
|
|
|
|
|
$timeout(function () { |
|
|
|
|
|
|
|
fileSelects |
|
|
|
|
|
|
|
.add('.im_head_attach input') |
|
|
|
|
|
|
|
.on('change', function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
$scope.$apply(function () { |
|
|
|
$scope.$apply(function () { |
|
|
|
$scope.draftMessage.files = Array.prototype.slice.call(self.files); |
|
|
|
$scope.draftMessage.files = Array.prototype.slice.call(self.files); |
|
|
@ -657,6 +661,7 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
}, 1000); |
|
|
|
}, 1000); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
|
|
|
|
|
|
|
|
var sendOnEnter = true, |
|
|
|
var sendOnEnter = true, |
|
|
|
updateSendSettings = function () { |
|
|
|
updateSendSettings = function () { |
|
|
@ -772,6 +777,7 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
$('body').off('dragenter dragleave dragover drop', onDragDropEvent); |
|
|
|
$('body').off('dragenter dragleave dragover drop', onDragDropEvent); |
|
|
|
$(document).off('paste', onPasteEvent); |
|
|
|
$(document).off('paste', onPasteEvent); |
|
|
|
$(document).off('keydown', onKeyDown); |
|
|
|
$(document).off('keydown', onKeyDown); |
|
|
|
|
|
|
|
fileSelects.off('change'); |
|
|
|
if (richTextarea) { |
|
|
|
if (richTextarea) { |
|
|
|
$(richTextarea).off('DOMNodeInserted', onPastedImageEvent); |
|
|
|
$(richTextarea).off('DOMNodeInserted', onPastedImageEvent); |
|
|
|
} |
|
|
|
} |
|
|
|