mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
dragon drop
This commit is contained in:
parent
d883115a80
commit
08dbc03708
1 changed files with 13 additions and 0 deletions
|
@ -181,6 +181,19 @@ function setupWallPostInputHandlers(id) {
|
||||||
// revert to original size if it is larger (possibly changed by user)
|
// revert to original size if it is larger (possibly changed by user)
|
||||||
// textArea.style.height = (newHeight > originalHeight ? (newHeight + boost) : originalHeight) + "px";
|
// textArea.style.height = (newHeight > originalHeight ? (newHeight + boost) : originalHeight) + "px";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
u("#wall-post-input" + id).on("dragover", function(e) {
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
|
// todo add animation
|
||||||
|
return;
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#wall-post-input" + id).on("drop", function(e) {
|
||||||
|
e.originalEvent.dataTransfer.dropEffect = 'move';
|
||||||
|
fastUploadImage(id, e.originalEvent.dataTransfer.files[0])
|
||||||
|
return;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function OpenMiniature(e, photo, post, photo_id, type = "post") {
|
function OpenMiniature(e, photo, post, photo_id, type = "post") {
|
||||||
|
|
Loading…
Reference in a new issue