Disable inline editing
Disable inline editing
Hi! I have a question about inline editing. I have page with inline editing working; it works great. I'd like to disable editing based on user action (basically the user can lock/unlock the page the page to disable/enable editing). Is there a way to do this? All of the examples out there only show how to enable inline editing, and not how to disable it after its been enabled.
cheers!
This discussion has been closed.
Answers
Hi,
Inline editing is activated by calling the
inline()
method - in most of the examples this is done with a click event listener - for example:If you no longer want that event listener, you would simply unbind it using jQuery event methods -
$().off()
in this case:You could use an event namespace to ensure you don't remove other events that you do want to keep. See the jQuery event documentation for more information.
Allan
perfect, ty!