Prevent locked posts (in process of uploading) from being moved.

This commit is contained in:
ccd0 2016-11-06 09:08:41 -08:00
parent 339163dfc3
commit 348d448351

View File

@ -370,6 +370,7 @@ QR.post = class
index = (el) -> [el.parentNode.children...].indexOf el
oldIndex = index el
newIndex = index @
return if QR.posts[oldIndex].isLocked or QR.posts[newIndex].isLocked
(if oldIndex < newIndex then $.after else $.before) @, el
post = QR.posts.splice(oldIndex, 1)[0]
QR.posts.splice newIndex, 0, post