Prevent the clicking on filename to open the file dialog when the post is locked.

This commit is contained in:
Nicolas Stepien 2013-03-01 22:56:01 +01:00
parent e7fbfe8886
commit 5c171ac371
2 changed files with 2 additions and 0 deletions

View File

@ -6174,6 +6174,7 @@
QR.nodes[name].disabled = lock;
}
this.nodes.rm.style.visibility = QR.nodes.fileRM.style.visibility = lock ? 'hidden' : '';
(lock ? $.off : $.on)(QR.nodes.filename.parentNode, 'click', QR.openFileInput);
this.nodes.spoiler.disabled = lock;
return this.nodes.el.draggable = !lock;
};

View File

@ -417,6 +417,7 @@ QR =
QR.nodes[name].disabled = lock
@nodes.rm.style.visibility =
QR.nodes.fileRM.style.visibility = if lock then 'hidden' else ''
(if lock then $.off else $.on) QR.nodes.filename.parentNode, 'click', QR.openFileInput
@nodes.spoiler.disabled = lock
@nodes.el.draggable = !lock
unlock: ->