![]() |
Custom JavaScript and Quick Edit
I have a custom tag, implemented as plugin since the basic BBcode doesn't do it, that needs a JavaScript function call for full functionality.
Works just fine on new posts, page reloads, ... However, the initialization JavaScript function is not called when the post is modified via Quick Edit (inline Ajax / Edit). Is there some way around that problem? |
Put the javascript in the showthread template?
|
By now, I don't even think this is a VB problem, but, rather, a browser feature.
The plugin gets something like [bb] ... content ... [/bb] and returns something like Code:
<div id="myID"> ... modified content ... </div> Is there an Ajax callback? Or some decent place to put an extra call without the need to edit any .js files? |
A decent place to put your javascript function "myFunction"? As I said before, if you say it's missing in the showthread, then why not insert it into the SHOWTHREAD template?
|
What I would need is something like "Hook: ajax_complete", but on the browser end, not server side.
|
All times are GMT. The time now is 10:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|