Currently, I am using Plone 3 and attempting to customize the default javascript file named table_sorter.js.
To keep things organized, I created a directory called "javascripts" under the browser directory of my product. I then registered this directory as a resource in the configure.zcml file:
<browser:resourceDirectory
name="myproduct.javascripts"
directory="javascripts"
layer=".interfaces.IThemeSpecific" />
The name "myproduct" is self-explanatory. Following that, in the jssregistry.xml file, I registered and arranged the order of the javascript files like so:
<javascript id="++resource++myproduct.javascripts/table_sorter.js"
enabled="True"
cookable="False"
inline="False"
insert-after="jquery.js" />
The aim of overriding the table_sorter.js file is to include icons on table headers by default, as the default behavior does not provide a way to indicate whether a table is sortable until it is clicked on.
Despite following the steps above, the customization doesn't seem to be working. I'm unsure where I might be making a mistake. Any assistance would be greatly appreciated.