Move JS theme init code to a function

Bug #692558 reported by Greg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PHPDevShell
Fix Released
Low
Greg

Bug Description

When a page loads, the /themes/cloud/js/theme.js file has a .ready() function which applies/removes classes to different elements.

I have added additional js that will allow a user to add and remove new elements to the page, but when I add the element, the class changes applied by themes.js are not applied, since they were run when the page was loaded.

How can I have the .ready() function run again when the user adds a new element to the page? Is there a way to call these functions from javascript to run them again so the newly added elements will get the class changes as well?

Greg (gregfr)
Changed in phpdevshell:
assignee: nobody → Greg (gregfr)
assignee: Greg (gregfr) → nobody
summary: - Moved JS theme init code to a function
+ Move JS theme init code to a function
Changed in phpdevshell:
status: New → Triaged
assignee: nobody → Greg (gregfr)
importance: Undecided → Low
Changed in phpdevshell:
status: Triaged → Fix Committed
Changed in phpdevshell:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.