View Single Post
Old 01-25-2018, 01:18 PM   #13
psyang
Powerplay Quarterback
 
Join Date: Jan 2010
Exp:
Default

I think if you add the javascript right after these lines in vbulletin_quick_edit.js

Quote:
vB_QuickEditor.restore(C.responseXML.getElementsBy TagName("postbit")[0].firstChild.nodeValue, "tableobj");
PostBit_Init(fetch_object("post" + vB_QuickEditor.postid), vB_QuickEditor.postid)
it should trigger after the user saves an edit. The problem is these lines appear twice in that file, so ignore the one which is preceded immediately by

Quote:
document.body.style.cursor = "auto";
as those lines occur after the user cancels an edit.

Note, you need to add a semicolon after ".postid)" above, just as for my previous post. Don't know why the semicolons are missing. So it should read:

Quote:
vB_QuickEditor.restore(C.responseXML.getElementsBy TagName("postbit")[0].firstChild.nodeValue, "tableobj");
PostBit_Init(fetch_object("post" + vB_QuickEditor.postid), vB_QuickEditor.postid);myTwitterJavascriptFunction ();

I hope you have a test area where you can test this, as I'd hate to be responsible for taking down the site with ill-advised suggestions

Last edited by psyang; 01-25-2018 at 01:20 PM.
psyang is offline   Reply With Quote