AlbinoRhino
Active member
That a good start. To solve the problem of editing images/scripts/familiarfaves.20120307.js, it might be better to rename the function and add the modified version to chit.js.
Now, what extra modification is needed to avoid loading the ajax result into the mainpane and where is the script called in the charpane html? How do I do that? We're close!
The script is loaded externally from the familiarfaves.20120307.js file when the page loads by the line which Winterbay refers to above. If you look at the anchor tag which wraps the familiar icon (and the name) you will see they have a class of "familiarpick". It is right-clicking an element of this class which activates the javascript in the external file. The external JS then creates the familiar picker and handles the changing of familiars. I guess to do what you want, you would have to:
1) remove the line which calls the external script i.e. <script type="text/javascript" src="/images/scripts/familiarfaves.20120307.js"></script>
2) reproduce everything in that file by inserting into a <script> tag within the charpane header .. and then ...
3) make the alterations needed to the familiar switching function
I'm still not certain how to handle the ajax. I haven't had a chance to look at that very carefully yet.