Prevent the clicking on filename to open the file dialog when the post is locked.
This commit is contained in:
parent
e7fbfe8886
commit
5c171ac371
@ -6174,6 +6174,7 @@
|
|||||||
QR.nodes[name].disabled = lock;
|
QR.nodes[name].disabled = lock;
|
||||||
}
|
}
|
||||||
this.nodes.rm.style.visibility = QR.nodes.fileRM.style.visibility = lock ? 'hidden' : '';
|
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;
|
this.nodes.spoiler.disabled = lock;
|
||||||
return this.nodes.el.draggable = !lock;
|
return this.nodes.el.draggable = !lock;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -417,6 +417,7 @@ QR =
|
|||||||
QR.nodes[name].disabled = lock
|
QR.nodes[name].disabled = lock
|
||||||
@nodes.rm.style.visibility =
|
@nodes.rm.style.visibility =
|
||||||
QR.nodes.fileRM.style.visibility = if lock then 'hidden' else ''
|
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.spoiler.disabled = lock
|
||||||
@nodes.el.draggable = !lock
|
@nodes.el.draggable = !lock
|
||||||
unlock: ->
|
unlock: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user