1

When I am on the categories index (admin/categories), is there a Garnish event that fires when you select a different category group in the sidebar? I want to add some custom JS after the AJAX request completes and the elements have been added to the page.

1
Craft.elementIndex.on('selectSource', function(){
     alert('changed the source');
});

Craft.elementIndex contains the plugin for all index pages, that means all entries as well as users and categories. There is an updateElements event as well..

Here is a full list

afterInit

selectSource

selectSite

updateElements

selectionChange

enableElements

disableElements

afterAction

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.